8000 add consistency tests to ModelChain.dc_model by cwhanse · Pull Request #548 · pvlib/pvlib-python · GitHub
[go: up one dir, main page]

Skip to content

add consistency tests to ModelChain.dc_model #548

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 13 commits into from
Aug 31, 2018
Prev Previous commit
Next Next commit
More adjustment to pvwatts_dc vs pvwatts keyword
  • Loading branch information
cwhanse committed Aug 28, 2018
commit 121a8b16bdc1718629348b15a3f69dd06c297b76
2 changes: 1 addition & 1 deletion pvlib/modelchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ def infer_dc_model(self):
elif set(['a_ref', 'I_L_ref', 'I_o_ref', 'R_sh_ref', 'R_s']) <= params:
return self.singlediode, 'singlediode'
elif set(['pdc0', 'gamma_pdc']) <= params:
return self.pvwatts_dc, 'pvwatts_dc'
return self.pvwatts_dc, 'pvwatts'
else:
raise ValueError('could not infer DC model from '
'system.module_parameters')
Expand Down
0