From 5207aed812efd6511ccd392f0fb5b307b623d1cf Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 23 Jun 2016 21:13:59 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/solar_python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/solar_python.py b/src/solar_python.py index ed60e87..a12f18d 100644 --- a/src/solar_python.py +++ b/src/solar_python.py @@ -364,7 +364,7 @@ def hour_angle_from_elevation(latitude, declination, elevation): rc -= math.sin(radians(latitude)) * math.sin(declination) rc /= math.cos(radians(latitude)) * math.cos(declination) rc = math.acos(rc) - return -rc if (rc < 0) == (elevation < 0) else rc; + return -rc if (rc < 0) == (elevation < 0) else rc def elevation_from_hour_angle(latitude, declination, hour_angle): -- cgit v1.2.3-70-g09d2