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

Infer thresholds for detect_clearsky #1784

Merged
merged 22 commits into from
Aug 2, 2023
Merged

Conversation

ajonesr
Copy link
Contributor

@ajonesr ajonesr commented Jun 26, 2023

  • Closes Extend detect_clearsky for different data periods #1808
  • 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.

@cwhanse
Copy link
Member

cwhanse commented Jun 28, 2023

We should add a test that confirms _clearsky_get_threshold is called from detect_clearsky when infer_limitsis True. See the use of mocker.spy e.g. here.

@ajonesr ajonesr marked this pull request as ready for review June 28, 2023 19:12
@cwhanse cwhanse added this to the v0.10.2 milestone Jul 14, 2023
@cwhanse
Copy link
Member

cwhanse commented Jul 14, 2023

@ajonesr please remove whatsnew/v0.10.0.rst from this PR. The test failures may be a problem with the new private function; somehow the alpha variable is getting set to NaN.

@ajonesr
Copy link
Contributor Author

ajonesr commented Jul 14, 2023

@ajonesr please remove whatsnew/v0.10.0.rst from this PR. The test failures may be a problem with the new private function; somehow the alpha variable is getting set to NaN.

Whoops, sorry about that. I think I've fixed it now?

@cwhanse
Copy link
Member

cwhanse commented Jul 14, 2023

@arjones still seeing the test error. You can run the tests locally pytest test_clearsky.py

@adriesse
Copy link
Member

Could we have an issue with a brief high-level description linked to this?

@cwhanse
Copy link
Member

cwhanse commented Jul 17, 2023

Could we have an issue with a brief high-level description linked to this?

#1808

Copy link
Member

@cwhanse cwhanse left a comment

Choose a reason for hiding this comment

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

Thanks @ajonesr

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.

Thanks @ajonesr! Well-structured code. A few suggestions below.

@cwhanse, perhaps this addition should be followed up with some change to pvanalytics.features.clearsky.reno.

pvlib/clearsky.py Outdated Show resolved Hide resolved
pvlib/tests/test_clearsky.py Outdated Show resolved Hide resolved
pvlib/clearsky.py Outdated Show resolved Hide resolved
pvlib/clearsky.py Outdated Show resolved Hide resolved
pvlib/clearsky.py Outdated Show resolved Hide resolved
pvlib/clearsky.py Outdated Show resolved Hide resolved
ajonesr and others added 2 commits July 21, 2023 14:26
Co-authored-by: Kevin Anderson <[email protected]>
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!

@kandersolar kandersolar merged commit e762e8a into pvlib:main Aug 2, 2023
23 of 24 checks passed
@kandersolar
Copy link
Member

Thanks @ajonesr and congrats on your first merged PR to pvlib!

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.

Extend detect_clearsky for different data periods
4 participants