-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Set leap_day=True as default in pvlib.iotools.get_psm3() #1481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I want to make sure I understand the API... PSM3 ignores |
In regards to the NREL NSRDB API, there is no For |
The statements above about the behavior of the PSM3 API endpoints are consistent with my understanding 👍 |
A potential alternative would be not to have a default behavior in order to force users to make a conscious choice. |
I do not know of any other service that excludes leap days when requesting normal (non TMY) time-series data; hence, I think changing the |
Any thoughts on whether this deserves a deprecation cycle like we've done for |
I'm ok with no deprecation cycle. I suppose then it should first be implemented in 0.10 (change the milestone)? |
Is your feature request related to a problem? Please describe.
Several functions require equal timesteps with no gaps (e.g.,
pvlib.temperature.prilliman
anddetect_clearsky
). Having weather data that excludes leap day will cause an error. Specifically, usingpvlib.iotools.get_psm3
for a leap year with the defaultleap_day=True
would be a common reason for encountering this error.Describe the solution you'd like
As suggested by @adriesse here #1476 (comment), perhaps the default should be changed to
leap_day=True
?Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Related to #1476.
On the topic of "is this a good idea", some comments from issue 1476:
(by me)
(by @kanderso-nrel)
The text was updated successfully, but these errors were encountered: