From 0396a273b99d622500649bdbdf08317df16c50b2 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 19 Mar 2014 01:01:35 +0100 Subject: fix time/solar elevation to dayness mapping MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- examples/textconf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') 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)) -- cgit v1.2.3-70-g09d2