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
{{ message }}
Repository navigation
NonExistentTimeError when calling hour_angle #2132
This would normalize the times to 1:00am instead of 12:00am (which didn't exist on that date). Here's some related discussion from a Pandas issue: pandas-dev/pandas#40517
I suspect we'd need to similarly handle ambiguous times when daylight savings ends.
Does this seem like a reasonable approach? I can put a small PR together if so.
The discussion around the pandas issue suggests this occurs when DST adjustment occurs in a way that midnight local never "happens".
Short of a worldwide deprecation of daylight savings times, or handling of this case by pandas.normalize, I suppose we ought to patch pvlib with liberal comments. rdtools worked around the problem in the similar way as proposed here https://github.com/NREL/rdtools/pull/373/files
Activity
cwhanse commentedon Jul 15, 2024
Confirmed the issue with pvlib v0.11.0.
The discussion around the pandas issue suggests this occurs when DST adjustment occurs in a way that midnight local never "happens".
Short of a worldwide deprecation of daylight savings times, or handling of this case by
pandas.normalize, I suppose we ought to patch pvlib with liberal comments. rdtools worked around the problem in the similar way as proposed here https://github.com/NREL/rdtools/pull/373/filescwhanse commentedon Jul 15, 2024
@scttnlsn re-reading my comment, I don't think I was very clear: PR welcome along the lines you propose.
scttnlsn commentedon Jul 15, 2024
@cwhanse Sounds good - I'll put something together
AdamRJensen commentedon Sep 30, 2024
@scttnlsn don't hesitate to reach out if you need help getting started with GitHub or the likes 😄
scttnlsn commentedon Sep 30, 2024
@AdamRJensen There's a PR open here: #2133 Let me know if anything needs more attention before merging.