Skip to content

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

Merged
merged 3 commits into from
May 6, 2019
Merged

Conversation

wholmgren
Copy link
Member

@wholmgren wholmgren commented May 3, 2019

  • Closes ModelChain: unexpected errors when building with module from CECMod #621
  • I am familiar with the contributing guidelines.
  • Fully tested. Added and/or modified tests to ensure correct behavior for all reasonable inputs. Tests (usually) must pass on the TravisCI and Appveyor testing services.
  • Updates entries to docs/sphinx/source/api.rst for API changes.
  • Adds description and name entries in the appropriate docs/sphinx/source/whatsnew file for all changes.
  • Code quality and style is sufficient. Passes LGTM and SticklerCI checks.
  • New code is fully documented. Includes sphinx/numpydoc compliant docstrings and comments in the code where necessary.
  • Pull request is nearly complete and ready for detailed review.

@wholmgren wholmgren added this to the 0.6.2 milestone May 3, 2019
@wholmgren wholmgren requested a review from cwhanse May 3, 2019 21:24
@@ -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 '
Copy link
Member

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

@@ -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 '
Copy link
Member

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

@@ -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.')
Copy link
Member

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

@@ -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.')
Copy link
Member

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

@wholmgren wholmgren merged commit 4872296 into pvlib:master May 6, 2019
@wholmgren wholmgren deleted the mcerrors branch May 6, 2019 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ModelChain: unexpected errors when building with module from CECMod
2 participants