-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Addressing unequal times error from pvlib.temperature.prilliman with no leap day #1476
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
Interesting problem. The missing leap day can cause problems in other functions as well. I would suggest that the best practice would be for the user to insert the leap day into their DataFrame using a method appropriate for their situation. Perhaps the default should be changed to |
@adriesse Agreed. That's the solution I used - repeat my psm3 weather query with Separately, I also like the idea of changing |
@williamhobbs in regards to:
Then I recommend that is made a separate issue. |
Checking for missing leap days and trying to correct for them seems out of scope for
We might also want to change "unequal times" to something else while we're at it. Note that this same error message is used in As an aside, I suspect |
It may also be worth updating the warning admonition to explicitly mention the issue with leap days. |
Is your feature request related to a problem? Please describe.
When using
pvlib.temperature.prilliman()
, if the weather data does not include leap day (e.g., using 2020 PSM3 frompvlib.iotools.get_psm3()
with the defaultleap_day=False
), it returns:This could be a common scenario and could be confusing to the user.
Describe the solution you'd like
There are several possible solutions:
NotImplementedError: algorithm does not yet support unequal times. consider resampling your data. check to make sure your data includes leap day for leap year(s).
leap day is missing from your data.
to the error message).Describe alternatives you've considered
Manually fill in leap day or repeat weather data query with leap day included (e.g., use
leap_day=True
withpvlib.iotools.get_psm3()
).The text was updated successfully, but these errors were encountered: