-
Notifications
You must be signed in to change notification settings - Fork 1.1k
refactor get_psm3 code into parse_psm3, read_psm3 #842
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 all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
b20de22
Split out PSM3 parsing code into its own function read_psm3; update d…
kandersolar 175f6ce
update tests and code for read_psm3 and get_psm3
kandersolar 3a62c6e
Create whatsnew for 0.7.1, add read_psm3 entry to api.rst
kandersolar 9a77cae
add read_psm3 to iotools/__init__.py
kandersolar 3d8faf3
Clean up NSRDB PSM3 API urls
kandersolar 0ed9e1a
Change read_psm3 to parse_psm3, remove ability to read files, add sma…
kandersolar 53f9f14
Add read_psm3 back in, refactor psm3 tests to reduce code duplication
kandersolar 35f10da
fix typo in parse_psm3 documentation
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
.. _whatsnew_0710: | ||
|
||
v0.7.1 (MONTH DAY, YEAR) | ||
------------------------ | ||
|
||
|
||
API Changes | ||
~~~~~~~~~~~ | ||
|
||
Enhancements | ||
~~~~~~~~~~~~ | ||
* Added :py:func:`~pvlib.iotools.read_psm3` to read local NSRDB PSM3 files and | ||
:py:func:`~pvlib.iotools.parse_psm3` to parse local NSRDB PSM3 file-like | ||
objects. (:issue:`841`) | ||
* Added `leap_day` parameter to `iotools.get_psm3` instead of hardcoding it as | ||
False. | ||
|
||
|
||
Bug fixes | ||
~~~~~~~~~ | ||
* Changed the PSM3 API endpoint for TMY requests in `iotools.get_psm3`. | ||
|
||
Testing | ||
~~~~~~~ | ||
* Added single-year PSM3 API test for `iotools.get_psm3`. | ||
* Added tests for `iotools.parse_psm3` and `iotools.read_psm3`. | ||
|
||
Documentation | ||
~~~~~~~~~~~~~ | ||
* Updated list of allowed years for `iotools.get_psm3`. | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
* Kevin Anderson (:ghuser:`kanderso-nrel`) |
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
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
Oops, something went wrong.
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 list is going to be outdated in ~6 months, but I don't have a better idea for describing the values. The information on the NSRDB websites are also out of date.
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 these values are up to date in the developer docs at least: TMY endpoint and Single-Year endpoint. Side note, these pages are developed on GH: NREL/developer.nrel.gov@5c03e14
I just put in a request for the TMY Description to be updated to include 2018.