summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-03-21 13:48:48 +0100
committerMattias Andrée <maandree@operamail.com>2014-03-21 13:48:48 +0100
commitb363416bc885bc0359ef8af506594068d8ed56d5 (patch)
tree86fe73cf8fdf9b592d203828a027c4ccb0d16df9
parenttypo (diff)
downloadblueshift-b363416bc885bc0359ef8af506594068d8ed56d5.tar.gz
blueshift-b363416bc885bc0359ef8af506594068d8ed56d5.tar.bz2
blueshift-b363416bc885bc0359ef8af506594068d8ed56d5.tar.xz
add todos
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--examples/textconf5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/textconf b/examples/textconf
index e0e723b..89d222f 100644
--- a/examples/textconf
+++ b/examples/textconf
@@ -391,13 +391,14 @@ if 'solar' in points:
(latitude, longitude) = location
-# Evaluate point
+# Evaluate point ## TODO Make this a standard part of Blueshift
if ('solar' not in points) and ('time' not in points):
sys.stderr.buffer.write(('Invalid points settings\n').encode('utf-8'))
sys.stderr.buffer.flush()
sys.exit(1)
reduce_points = 'reduce' in points
solar_points = 'solar' in points
+# TODO support brackets (see textconf.conf)
def t(point):
point = [float(p) for p in point.split(':')]
while len(point) > 3:
@@ -411,7 +412,7 @@ if reduce_points:
points = [(r / n, v) for r, v in points]
get_timepoint = None
points.sort(key = lambda x : x[1])
-if not solar_points:
+if not solar_points: # TODO does these really handle `reduce` correctly?
one_day = 24 * 60 * 60
points.append((points[0][0], points[0][1] + one_day))
points = [(points[-2][0], points[-2][1] - one_day)] + points