-
Notifications
You must be signed in to change notification settings - Fork 32
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 outside_domain parameter to irradiance ratio QC tests #214
Conversation
@cwhanse, @kandersolar, @kperrynrel Before completing this I'd appreciate a review of the parameter naming and implementation and whether you can support this for future irradiance QC tests |
The definition of If instead, you want the control the internal workings of the test, and not apply the GHI and zenith bounds, then "skip_bounds=False" makes more sense to me. |
My earlier definition probably wasn't good. The following is probably better:
What I'm trying to achieve is that a test isn't considered failing when the test conditions aren't met (e.g., irradiance is below 50 W/m^2). @cwhanse does this make more sense? |
That makes sense now. "out_of_domain" works for me, "out_of_domain_value" seems like the "value" part is optional. |
@cwhanse @kandersolar This PR is ready for review. Cliff suggested naming the new parameter |
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.
My browser GH is behaving strangely so if the suggested changes look wonky, its not me.
Co-authored-by: Cliff Hansen <[email protected]>
@kandersolar a review of this would be appreciated |
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.
Should the .. warning::
at the top of this function docstring (above Parameters
) be edited, perhaps to mention this new parameter?
Tests look good to me.
Co-authored-by: Kevin Anderson <[email protected]>
@AdamRJensen any thoughts on this? If you want to leave it the way it is, then LGTM and fine to merge |
This is ready to be merged. Thanks for the help |
[ ] Added new API functions todocs/api.rst
.in
docs/whatsnew
for all changes. Includes link to the GitHub Issue with
:issue:`num`
or this Pull Request with
:pull:`num`
. Includes contributor nameand/or GitHub username (link with
:ghuser:`user`
).This PR adds an optional
out_of_bounds
parameter to the irradiance QC tests which allows the user to specify whether to Fail (False) or pass (True) a test when the conditions are outside of the valid test domain.