Browse Source

Minor edits to data download

Petra Lamborn 5 years ago
parent
commit
d6a8b782d1
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      py/clustering.py

+ 2
- 2
py/clustering.py View File

59
 ) AS comb
59
 ) AS comb
60
 LEFT JOIN
60
 LEFT JOIN
61
 (
61
 (
62
-    SELECT *, read_date + CONCAT(period / 2, ':', period % 2 * 30, ':00')::time AS read_time
62
+    SELECT *, read_date + CONCAT(period / 2, ':', period %% 2 * 30, ':00')::time AS read_time
63
     FROM public.coup_tall_april
63
     FROM public.coup_tall_april
64
 ) AS tall_timestamp 
64
 ) AS tall_timestamp 
65
 ON comb.read_time = tall_timestamp.read_time AND comb.icp_id = tall_timestamp.icp_id;
65
 ON comb.read_time = tall_timestamp.read_time AND comb.icp_id = tall_timestamp.icp_id;
66
 """
66
 """
67
 
67
 
68
-pickleQuery(query, "April.pkl")
68
+pickleQuery(query, "../data/April.pkl")