summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-05-30 07:13:51 +0200
committerMattias Andrée <maandree@operamail.com>2014-05-30 07:13:51 +0200
commitbc052cbd8078b3ffc3fb56d5373f82731f419df4 (patch)
tree2260d93570feed5159ae1c2104268a7d9eeff273 /src
parentupdate todo (diff)
downloadblueshift-bc052cbd8078b3ffc3fb56d5373f82731f419df4.tar.gz
blueshift-bc052cbd8078b3ffc3fb56d5373f82731f419df4.tar.bz2
blueshift-bc052cbd8078b3ffc3fb56d5373f82731f419df4.tar.xz
missed to default to current time
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/solar.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/solar.py b/src/solar.py
index 05f0d2e..ed85b2c 100644
--- a/src/solar.py
+++ b/src/solar.py
@@ -451,6 +451,7 @@ def future_past_elevation(delta, latitude, longitude, elevation, t = None):
@param t:float? The time in Julian Centuries, `None` for the current time
'''
epsilon = 0.000001
+ t = julian_centuries() if t is None else t
t1 = t2 = t
e1 = e0 = solar_elevation(latitude, longitude, t)
while True: