aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-06-23 21:13:59 +0200
committerMattias Andrée <maandree@kth.se>2016-06-23 21:13:59 +0200
commit5207aed812efd6511ccd392f0fb5b307b623d1cf (patch)
tree2766de8559270e31c75af46c0d149879bcad3edf /src
parentRemove dist (diff)
downloadsolar-python-5207aed812efd6511ccd392f0fb5b307b623d1cf.tar.gz
solar-python-5207aed812efd6511ccd392f0fb5b307b623d1cf.tar.bz2
solar-python-5207aed812efd6511ccd392f0fb5b307b623d1cf.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/solar_python.py2
1 files changed, 1 insertions, 1 deletions
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):