You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/johnc/.PyCharm2019.3/config/scratches/scratch_10.py", line 11, in <module>
pprint.pprint(sun(wellington.observer))
File "/home/johnc/.virtualenvs/sureflap_gcloud/lib/python3.7/site-packages/astral/sun.py", line 1123, in sun
"dawn": dawn(observer, date, dawn_dusk_depression, tzinfo),
File "/home/johnc/.virtualenvs/sureflap_gcloud/lib/python3.7/site-packages/astral/sun.py", line 738, in dawn
observer, date, 90.0 + dep, SunDirection.RISING
File "/home/johnc/.virtualenvs/sureflap_gcloud/lib/python3.7/site-packages/astral/sun.py", line 380, in time_of_transit
raise ValueError(f"Sun never transits at a zenith of {zenith} on {date}")
ValueError: Sun never transits at a zenith of 96.0 on 2020-02-11
The text was updated successfully, but these errors were encountered:
The problem was with sun times that in the UTC timezone that would be on the previous day and I was treating that as an error. This only showed up for time zones with a large positive time offset of which Wellington is one.
I'm getting this error with astral==2.0.1 (also with the 2.0.2 tag, and with latest master 60aa65f) when trying to calculate sun data from NZ:
"ValueError: Sun never transits at a zenith of 96.0 on 2020-02-11"
Example:
outputs something reasonable:
hits this exception
The text was updated successfully, but these errors were encountered: