From bc052cbd8078b3ffc3fb56d5373f82731f419df4 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 30 May 2014 07:13:51 +0200 Subject: missed to default to current time MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/solar.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src/solar.py') 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: -- cgit v1.2.3-70-g09d2