-
Notifications
You must be signed in to change notification settings - Fork 1.1k
update spectral_factor_firstsolar #2100
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
Conversation
Added parameters to enable user to set min/max airmass Changed handling of values exceeding max pw to default to max pw rather than np.nan Replaced subjective phrasing such as "exceptionally high" with "high" and removed references to "divergence" in the warnings in order to align with the fact that the user can now determine their own limits, which may or may not be "exceptionally" high/low or cause model divergence Added tests for new AMa limit parameters, modified warnings and expected values in existing tests
@kandersolar is the failed test the one that you mentioned before fails randomly sometimes? |
@RDaxini Yes it's unrelated to your contribution. |
I would rather see this information moved to a Notes section, than deleted. The reason for the bounds should be retained. For PW, the bounds ensure that the model doesn't "diverge" from physically reasonable values, e.g., if |
Is this statement referring to the matlab function really necessary? |
Not any longer, this reference can be removed. |
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'm surprised that a minimum airmass is added. Where does the default value come from (a quote or screen-shot from the paper perhaps)?
adriesse + AdamRJensen review Co-authored-by: Anton Driesse <[email protected]> Co-authored-by: Adam R. Jensen <[email protected]>
Co-authored-by: Anton Driesse <[email protected]>
plus removed a few commas, capitalised a letter
All good from my side now save for this one comment --- is the whatsnew entry for this PR okay? |
Co-authored-by: Adam R. Jensen <[email protected]>
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.
A few nitpicky things:
- Could you write out precipitable water in the warnings (minor, feel free to ignore if you disagree)
- Add a sentence in the Notes section, stating that the min/max values are from the original pvlib implementation to the author (consider adding a link to the PR). I think this is important info as most users aren't going to find this discussion.
Co-authored-by: Adam R. Jensen <[email protected]>
@AdamRJensen thanks for the comments. Those suggestions are fine, I have implemented them. |
pw -> precipitable water
Co-authored-by: Echedey Luis <[email protected]>
Thank you @RDaxini for some great GSoC contributions! |
Main change: update data screens in
spectrum.spectral_factor_firstsolar
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`
).remote-data
) and Milestone are assigned to the Pull Request and linked Issue.Summary of changes:
Feedback on #2086 and recommendations for alternative/additional updates more than welcome.