-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add map_variables parameter to read_tmy3 function #1623
Conversation
Hi @ooprathamm Thank you very much for tackling this issue 😀 There's a couple of formatting issues (stickler). If you can solve those, then I'll go ahead and give a detailed review. If you have any issues feel free to post here and we'll get it sorted! Also, if you update the description with the issue number (closes #xxxx), then GitHub will automatically link the two. |
@ooprathamm Mapping of variables using the |
@ooprathamm are you still working on this issue? Again, don't hesitate to reach out for help if you are stuck. |
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.
It's looking very good so far, well done!
Besides the few comments I've added, there needs to be added one or two tests that checks if the variable mapping does what it is supposed to. The tests for the TMY3 functions are located here.
You can check out this test from the surfrad functions for inspiration.
It would also be ideal to have one test case that checks if the warning is raised properly, see this test case for how to do that.
Co-authored-by: Adam R. Jensen <39184289+AdamRJensen@users.noreply.github.com>
Co-authored-by: Adam R. Jensen <39184289+AdamRJensen@users.noreply.github.com>
Co-authored-by: Adam R. Jensen <39184289+AdamRJensen@users.noreply.github.com>
Co-authored-by: Adam R. Jensen <39184289+AdamRJensen@users.noreply.github.com>
Co-authored-by: Kevin Anderson <kevin.anderso@gmail.com>
Co-authored-by: Kevin Anderson <kevin.anderso@gmail.com>
Co-authored-by: Kevin Anderson <kevin.anderso@gmail.com>
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.
I think I like how read_tmy3
looks now :)
I think this PR will be ready after cleaning up the deprecation warnings emitted elsewhere in pvlib: some tests in test_location.py
and test_soiling.py
(https://github.com/pvlib/pvlib-python/actions/runs/5047873887/jobs/9055325947?pr=1623#step:9:66), plus several pages in the user guide and gallery. Some notebooks too, but I suggest leaving those to continue collecting dust and falling out of date. $ git grep read_tmy3
is helpful in tracking down all the places read_tmy3
gets used.
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.
LGTM pending the stickler stuff
Thanks @ooprathamm and @AdamRJensen! What a big job this turned out to be. |
[ ] Updates entries indocs/sphinx/source/reference
for API changes.docs/sphinx/source/whatsnew
for 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`
).remote-data
) and Milestone are assigned to the Pull Request and linked Issue.