Commit 96fa7e80 authored by Miguel Tremblay's avatar Miguel Tremblay
Browse files

Syntax to work with old python version.

parent 954ad16c
......@@ -80,7 +80,10 @@ def get_corrected_solar_flux(utc, S, lat, lon, horiz, m=1):
horiz_elev = get_horiz_elev(sun_azim, horiz)
## Check whether Sun is above (1) or below (0) visible horizon
sun = 1 if (sun_elev > horiz_elev) else 0
if (sun_elev > horiz_elev):
sun = 1
else:
sun = 0
## If Sun is bellow visible horizon do solar flux correction
if (sun == 0):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment