add max_airmass=12 kwarg to disc#626
Conversation
cwhanse
left a comment
There was a problem hiding this comment.
I'm OK with this implementation. Exposing max_airmass in disc and diriint is fine.
| Default value (`max_airmass=12`) is consistent with polynomial fit in | ||
| original paper describing the model. Output of | ||
| :py:func:`pvlib.irradiance.dirint` and `:py:func:`pvlib.irradiance.dirindex`, | ||
| are different when `min_cos_zenith` and `max_zenith` kwargs are used. |
There was a problem hiding this comment.
This second sentence is not clear to me. Are you saying that the two functions produce different output with the same kwarg values, or that each function's output is different if the kwarg is set different from its default?
There was a problem hiding this comment.
The outputs of each of these functions will be different than they were before if the user set the kwargs to more permissive values.
There was a problem hiding this comment.
to be clear, this is only because of the change in disc and not because I've directly changed anything in these other functions.
There was a problem hiding this comment.
Perhaps "Changing the value(s) of min_cos_zenith or max_zenith kwargs will change the output of :py:func:pvlib.irradiance.dirint and :py:func:pvlib.irradiance.dirindex`.
Yes. My preference would be to expose it in all three functions, but I don't feel strongly about it. |
|
I moved the airmass limit into |
docs/sphinx/source/api.rstfor API changes.docs/sphinx/source/whatsnewfile for all changes.@cwhanse @adriesse ready for review.