8000 Deprecate/raise error for PVSystem "pass-through" properties by kandersolar · Pull Request #1196 · pvlib/pvlib-python · GitHub
[go: up one dir, main page]

Skip to content

Deprecate/raise error for PVSystem "pass-through" properties #1196

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 16 commits into from
May 20, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rephrase error message
  • Loading branch information
kandersolar committed May 19, 2021
commit a29acaeaa2c8645d5794c0cc1dd206a30eda9ec9
10 changes: 5 additions & 5 deletions pvlib/modelchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,11 +735,11 @@ def infer_dc_model(self):
elif {'pdc0', 'gamma_pdc'} <= params:
return self.pvwatts_dc, 'pvwatts'
else:
raise ValueError('could not infer DC model from '
'system.arrays[i].module_parameters. Check '
'system.arrays[i].module_parameters or '
'explicitly set the model with the dc_model '
'kwarg.')
raise ValueError(
'Could not infer DC model from the module_parameters '
'attributes of system.arrays. Check the module_parameters '
'attributes or explicitly set the model with the dc_model '
'keyword argument.')

def sapm(self):
dc = self.system.sapm(self.results.effective_irradiance,
Expand Down
0