-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Correct usage of xtol
in ghi_from_poa_driesse_2023
#1971
Correct usage of xtol
in ghi_from_poa_driesse_2023
#1971
Conversation
Convergence criterion. The estimated GHI will be within xtol of the | ||
true value. [W/m^2] | ||
Convergence criterion. The estimated GHI will be within xtol of the | ||
true value. Must be positive. [W/m^2] |
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.
Interestingly, the bisect docstring says nonnegative, which is inconsistent with its code.
@@ -1599,7 +1603,7 @@ def ghi_from_poa_driesse_2023(surface_tilt, surface_azimuth, | |||
solar_zenith, solar_azimuth, | |||
poa_global, | |||
dni_extra, airmass, albedo, | |||
xtol=0.01) | |||
xtol=xtol) |
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.
Good catch!
Co-Authored-By: Anton Driesse <[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.
Thanks @echedey-ls!
xtol
in ghi_from_poa_driesse_2023
xtol
argument inghi_from_poa_driesse_2023
#1970[ ] Updates entries indocs/sphinx/source/reference
for API changes.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.I believe linked issue gives enough context.