summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-03-19 01:01:35 +0100
committerMattias Andrée <maandree@operamail.com>2014-03-19 01:01:35 +0100
commit0396a273b99d622500649bdbdf08317df16c50b2 (patch)
treec161abc60b11e32aa06bd03e4fdfb6c0912ffa99 /examples
parentfix errors (diff)
downloadblueshift-0396a273b99d622500649bdbdf08317df16c50b2.tar.gz
blueshift-0396a273b99d622500649bdbdf08317df16c50b2.tar.bz2
blueshift-0396a273b99d622500649bdbdf08317df16c50b2.tar.xz
fix time/solar elevation to dayness mapping
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/textconf2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/textconf b/examples/textconf
index 08e1259..07495b0 100644
--- a/examples/textconf
+++ b/examples/textconf
@@ -353,7 +353,7 @@ if reduce_points:
n = len(points) - 1
points = [(r / n, v) for r, v in points]
get_timepoint = None
-points.sort(key = lambda x : x[0])
+points.sort(key = lambda x : x[1])
if not solar_points:
one_day = 24 * 60 * 60
points.append((points[0][0], points[0][1] + one_day))