Conversation
This reverts commit d7deb80.
Enforce the usage of the following terminology in the iotools inputs: start/end, latitude/longitude, and metadata. Also, latitude/longitude should come before start/end
kandersolar
left a comment
There was a problem hiding this comment.
Thanks for this cleanup @AdamRJensen! Comments below, and two more here:
- We'll have to update the existing PVGIS tests at some point before 0.10, might as well specify
map_variables=Falsenow so that it's not emitting warnings in the mean time. introtutorial.rstusespvlib.iotools.get_pvgis_tmy, might as well usemap_variables=Truethere too since it does the same thing manually anyway.
|
Thanks for the review @kanderso-nrel. Consider all changes implemented. I've added variable_map=False to all pvgis_tmy tests and they are silent now. I'm beginning to see something beautiful about the code review process - it truly does make for much better and consistent code. |
kandersolar
left a comment
There was a problem hiding this comment.
LGTM, would be good to get someone else's (@wholmgren?) feedback too because breaking changes are always scary.
wholmgren
left a comment
There was a problem hiding this comment.
Thanks @AdamRJensen. Check out the code below for an example of using fail_on_pvlib_version
pvlib-python/pvlib/tests/test_modelchain.py
Lines 1781 to 1788 in 0fd5c43
While you're at it, can you change that decorator argument to '0.10'?
| return data | ||
|
|
||
| if map_variables is None: | ||
| warnings.warn( |
There was a problem hiding this comment.
We need to test that this warning is emitted and mark that test with the fail_on_pvlib_version decorator. This ensures that we don't forget to remove deprecated functionality.
There was a problem hiding this comment.
@wholmgren Very smart, thanks for showing me this!
I believe all of your comments have been addressed.
Co-authored-by: Will Holmgren <william.holmgren@gmail.com>
Co-authored-by: Will Holmgren <william.holmgren@gmail.com>
Co-authored-by: Will Holmgren <william.holmgren@gmail.com>
wholmgren
left a comment
There was a problem hiding this comment.
@kanderso-nrel ready to merge?
Enforce the usage of the following terminology in pvlib iotools inputs: start/end, latitude/longitude, and metadata. Also, location information (such as latitude/longitude or station name) should come before start/end.
Updates entries todocs/sphinx/source/api.rstfor API changes.docs/sphinx/source/whatsnewfor all changes. Includes link to the GitHub Issue with:issue:`num`or this Pull Request with:pull:`num`. Includes contributor name and/or GitHub username (link with:ghuser:`user`).