-
Notifications
You must be signed in to change notification settings - Fork 76
migrate to pvlib>=0.7.0 #170
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
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
559cb13
migrate to pvlib >=0.7.0
kandersolar 4fbb05a
update SAPM normalization docstrings to mention racking_model and mod…
kandersolar c9a39d2
update sapm normalization test to specify module_type
kandersolar c04f16e
bump docs pvlib requirement to 0.7.1
kandersolar 4747588
Update rdtools/normalization.py
kandersolar baed513
don't use keyword names for sapm_celltemp
kandersolar 08f16dc
Merge branch 'pvlib_compat' of https://github.com/NREL/rdtools into p…
kandersolar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This assumes that
pvlib_pvsystem.temperature_model_parametersare set, or can be inferred frompvlib_pvsystem.racking_modelandpvlib_pvsystem.module_type. I see thatracking_modelis set, but I didn't see wheremodule_typeis set (values can be'glass_polymer'and'glass_glass', default'glass_polymer'). The code should work as is, but to be explicit about the temperature model, I would suggest settingpvlib_pvsystem.module_typeor settingpvlib_pvsystem.temperature_model_parametersif that's not already being done. No promises if the current default behavior will continue after pvlib v0.8.0.That's the only thing I see.
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.
Thanks! I've updated the docstrings and tests to be explicit about the temperature model. I appreciate the review.
Uh oh!
There was an error while loading. Please reload this page.
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.
Note these are positional args, not keyword args, so I don't promise to deprecate the names if we decide to change them. In particular, I think
temp_airis going to change at some point in the near future. So, you might want to call them using just the positions rather than the names.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.
Thanks @wholmgren.
setup.pydoes specifypvlib<0.8.0, but might as well try to be forward-compatible if possible.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.
If things change in future versions of pvlib, is this a case where we can use conditionals to continue to support 0.7?
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.
On a related note: If in the future we change to requiring pvlib>0.8, but that doesn't change the RdTools calculations or API, it seems we don't need a major version. (See Semantic Versioning FAQ)