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

Add optional return_components parameter to irradiance.haydavies #1568

Merged
merged 8 commits into from Oct 31, 2022

Conversation

spaneja
Copy link
Contributor

@spaneja spaneja commented Oct 10, 2022

Update the Hay Davies sky transposition model to return individual components by user request.

  • Closes #xxxx
  • 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.

Update the Hay Davies sky transposition model to return individual components by user request.
@kandersolar kandersolar added this to the 0.9.4 milestone Oct 10, 2022
@kandersolar
Copy link
Member

Thanks @spaneja this looks like a great start. In addition to fixing the stickler/pep8 stuff, can you make a note of the new functionality and add your name to the contributors list in the 0.9.4 what's new file (docs/sphinx/source/whatsnew/v0.9.4.rst)?

I'll take a closer look once the stickler issues are resolved, but one thing I notice now is that the (always zero) horizon component as mentioned in #1553 (comment) is missing. Thanks!

Added in horizon component, which defaults to 0 or NaN. Also updating some stickler issues.
Updating formatting in file to be in line with stickler. Updating contributors list and corresponding information.
adding in test for when pandas is not being used.
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.

Looking good @spaneja

pvlib/irradiance.py Outdated Show resolved Hide resolved
pvlib/irradiance.py Show resolved Hide resolved
pvlib/irradiance.py Outdated Show resolved Hide resolved
pvlib/irradiance.py Outdated Show resolved Hide resolved
pvlib/irradiance.py Outdated Show resolved Hide resolved
pvlib/tests/test_irradiance.py Outdated Show resolved Hide resolved
docs/sphinx/source/whatsnew/v0.9.4.rst Outdated Show resolved Hide resolved
updated tests for various data types.
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.

LGTM. Thanks @spaneja! I'll leave this open for now to allow any other interested parties to take a look.

@kandersolar kandersolar changed the title haydavies_return_components Add optional return_components parameter to irradiance.haydavies Oct 13, 2022
@kandersolar
Copy link
Member

Hearing no objections, I'll go ahead and merge this. Thanks again @spaneja

@kandersolar kandersolar merged commit dd6062a into pvlib:master Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants