summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-03-18 03:33:59 +0100
committerMattias Andrée <maandree@operamail.com>2014-03-18 03:33:59 +0100
commitca74321445bc38561307a4be718968f52490f2e9 (patch)
treeb6fba75ba1e1edae8ab4bbb4d82508f33914b662 /examples
parentquite a bit of the text based configuration example (diff)
downloadblueshift-ca74321445bc38561307a4be718968f52490f2e9.tar.gz
blueshift-ca74321445bc38561307a4be718968f52490f2e9.tar.bz2
blueshift-ca74321445bc38561307a4be718968f52490f2e9.tar.xz
add missed return
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 7dcff6f..9f79494 100644
--- a/examples/textconf
+++ b/examples/textconf
@@ -316,7 +316,7 @@ def t(point):
point = [float(p) for p in point.split(':')]
while len(point) > 3:
point.append(0)
- point = sum([v * 60 ** (2 - i) for i, v in enumerate(point)])
+ return sum([v * 60 ** (2 - i) for i, v in enumerate(point)])
points = [float(p) if solar_points else t(p) for p in points if p not in ['solar', 'time', 'point']]
points = list(enumerate(points))
if reduce_points: