-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
PVSystem.temperature_model_parameters requirement #1030
Comments
Yes, that is the intent.
The warning should have been raised whenever condition #2 above wasn't met; it looks to me that has been the case. If that hasn't been the case I would prefer to fix the warning and push the deprecation out to v0.9. pvlib-python has had that unadvertised default temperature model assignment for a long time. |
I don't follow here - it looks to me that the warning should be raised if 1) |
The |
What is the expected behavior for |
Aha. I see the problem now, thanks. Perhaps remove the defaults in v0.8 and leave the warning until v0.9? |
Ok, I'll work on that. |
The
temperature_model_parameters
handling code below suggests to me that in 0.8 we're going tomodule_type=None
andracking_model=None
.temperature_model_parameters
or bothmodule_type
andracking_model
.pvlib-python/pvlib/pvsystem.py
Lines 208 to 221 in 27872b8
@cwhanse is that correct?
The problem is that the only way to see this warning is to supply an invalid
module_type
orracking_model
. That's becausePVSystem._infer_temperature_model
is called before the code above, and it looks up the defaultmodule_type
andracking_model
and successfully finds temperature coefficients.pvlib-python/pvlib/pvsystem.py
Lines 201 to 203 in 27872b8
So I'm guessing that this warning has been seen by only a small fraction of people that need to see it. I'm ok moving forward with the removal in 0.8 or pushing to 0.9.
The text was updated successfully, but these errors were encountered: