Skip to content
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

Make leap_day=True default for PSM3 (deprecation) #1511

Merged
merged 5 commits into from
Aug 15, 2022

Conversation

AdamRJensen
Copy link
Member

@AdamRJensen AdamRJensen commented Aug 1, 2022

  • Closes Set leap_day=True as default in pvlib.iotools.get_psm3() #1481
  • I am familiar with the contributing guidelines
  • Tests added
  • [ ] Updates entries in docs/sphinx/source/reference for API changes.
  • [ ] Adds description and name entries in the appropriate "what's new" file in 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`).
  • New code is fully documented. Includes numpydoc compliant docstrings, examples, and comments where necessary.
  • Pull request is nearly complete and ready for detailed review.
  • Maintainer: Appropriate GitHub Labels (including remote-data) and Milestone are assigned to the Pull Request and linked Issue.

It has been decided to change the default value for the leap_day argument in the get_psm3 function from False to True (see #1481). This PR adds a deprecation warning stating that the default will be changed to leap_day=True in pvlib 0.11.

@AdamRJensen AdamRJensen added io remote-data triggers --remote-data pytests labels Aug 1, 2022
@AdamRJensen AdamRJensen added this to the 0.9.2 milestone Aug 1, 2022
Copy link
Member

@kandersolar kandersolar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a whatsnew entry too

pvlib/iotools/psm3.py Outdated Show resolved Hide resolved
@AdamRJensen AdamRJensen added remote-data triggers --remote-data pytests and removed remote-data triggers --remote-data pytests labels Aug 2, 2022
Copy link
Member

@kandersolar kandersolar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK with me!

docs/sphinx/source/whatsnew/v0.9.2.rst Outdated Show resolved Hide resolved
pvlib/iotools/psm3.py Outdated Show resolved Hide resolved
@AdamRJensen AdamRJensen mentioned this pull request Aug 3, 2022
9 tasks
@AdamRJensen
Copy link
Member Author

@pvlib/pvlib-maintainer This PR is ready for a second review if anyone wants to take a look

docs/sphinx/source/whatsnew/v0.9.2.rst Outdated Show resolved Hide resolved
Update whatsnew with suggestion from cwhanse

Co-authored-by: Cliff Hansen <cwhanse@sandia.gov>
@AdamRJensen AdamRJensen added remote-data triggers --remote-data pytests and removed remote-data triggers --remote-data pytests labels Aug 5, 2022
@AdamRJensen AdamRJensen merged commit e659a5a into pvlib:master Aug 15, 2022
@AdamRJensen AdamRJensen deleted the deprecation_psm3_leapday branch August 15, 2022 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
io remote-data triggers --remote-data pytests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set leap_day=True as default in pvlib.iotools.get_psm3()
3 participants