-
Notifications
You must be signed in to change notification settings - Fork 1.1k
1759 resolve attrib error model chain #1947
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
Changes from 2 commits
6238e51
821d1fc
17e6ee2
5cde61f
00c0b8b
022eabe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1118,9 +1118,7 @@ def infer_temperature_model(self): | |
array.temperature_model_parameters for array in self.system.arrays) | ||
params = _common_keys(temperature_model_parameters) | ||
# remove or statement in v0.9 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's delete this comment as well, since we are now removing the specified There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will do about removing the Thanks for creating the test. I have 2 comments about it before implementing. The
Having stepped away from this and looking at the error I realized that understanding why the temperature model parameter was ignored requires the user to dig through that long I think it's worthwhile to update the error message to make it easier on the user:
Also, we need to update that last sentence in the error message, it's confusing. Not sure where this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's true that passing If you like, please clarify the explanation comment in the test for future readers :) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think I was updating my comment while you were replying. I'm not proposing modifying the test by not specifying There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For this ValueError, what about "Could not infer the temperature model. If Arrays are not used to construct the PVsystem, check the PVsystem attributes racking_model and module_type. If Arrays are used, check that all Arrays in ModelChain.system.arrays have parameters for the same temperature model. Common temperature model parameters: {params}." The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @kandersolar, you are correct, makes sense, thanks. Will incorporate as per your suggestion and then after we finish probably tackle #1946 to address the error message. Thanks @cwhanse for the phrasing. |
||
if {'a', 'b', 'deltaT'} <= params or ( | ||
not params and self.system.racking_model is None | ||
and self.system.module_type is None): | ||
if {'a', 'b', 'deltaT'} <= params: | ||
return self.sapm_temp | ||
elif {'u_c', 'u_v'} <= params: | ||
return self.pvsyst_temp | ||
|
Uh oh!
There was an error while loading. Please reload this page.