aboutsummaryrefslogtreecommitdiff
path: root/sun.py
diff options
context:
space:
mode:
Diffstat (limited to 'sun.py')
-rw-r--r--sun.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sun.py b/sun.py
index 379ad64..7ceec5d 100644
--- a/sun.py
+++ b/sun.py
@@ -27,6 +27,6 @@ def sun_direction(lat, lon, time, time_diff, summertime_shift = 0):
azimuth = np.arccos((np.cos(d) * np.sin(l) * np.cos(h) - np.sin(d) * np.cos(l)) / np.cos(altitude))
if h < 0:
- return (altitude, -azimuth)
- else:
return (altitude, azimuth)
+ else:
+ return (altitude, -azimuth)