-
Notifications
You must be signed in to change notification settings - Fork 1.1k
improve modelchain inference error text #703
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
Conversation
pvlib/modelchain.py
Outdated
@@ -577,7 +582,10 @@ def infer_aoi_model(self): | |||
return self.ashrae_aoi_loss | |||
else: | |||
raise ValueError('could not infer AOI model from ' | |||
'system.module_parameters') | |||
'system.module_parameters. Check that the ' | |||
'parameters contain physical, aoi, or ashrae ' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
system.module_parameters contain parameters for the physical, aoi, or ashrae model; explicitly set model with aoi_model kwarg; or
pvlib/modelchain.py
Outdated
@@ -629,8 +637,9 @@ def infer_spectral_model(self): | |||
raise ValueError('could not infer spectral model from ' | |||
'system.module_parameters. Check that the ' | |||
'parameters contain valid ' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
system.module_parameters contains valid
pvlib/modelchain.py
Outdated
@@ -411,7 +414,8 @@ def infer_dc_model(self): | |||
return self.pvwatts_dc, 'pvwatts' | |||
else: | |||
raise ValueError('could not infer DC model from ' | |||
'system.module_parameters') | |||
'system.module_parameters. Check parameters or ' | |||
'explicity set model with dc_model kwarg.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
explicitly set the model with the dc_model kwarg
pvlib/modelchain.py
Outdated
@@ -530,7 +534,8 @@ def infer_ac_model(self): | |||
return self.pvwatts_inverter | |||
else: | |||
raise ValueError('could not infer AC model from ' | |||
'system.inverter_parameters') | |||
'system.inverter_parameters. Check parameters or ' | |||
'explicity set model with ac_model kwarg.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
explicitly set the model with the ac_model kwarg
docs/sphinx/source/api.rst
for API changes.docs/sphinx/source/whatsnew
file for all changes.