You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pvlib.irradiance.poa_horizontal_ratio should be removed #1697
Apparently I added this function 9 years ago during a large refactor, perhaps in an aborted effort at DRY code, but never used it. Tests were hardly a thing at that time. In any case, I suggest we delete it.
Hi, I would like to tackle this issue. It seems like there is more to it aside from just deleting the poa_horizontal_ratio function. If I delete that function, then do I do anything with the docs/tutorials/irradiance.ipynb notebook that uses the function?
Please recommend other requirements for this issue if applicable.
Activity
wholmgren commentedon Mar 13, 2023
Apparently I added this function 9 years ago during a large refactor, perhaps in an aborted effort at DRY code, but never used it. Tests were hardly a thing at that time. In any case, I suggest we delete it.
Lakshyadevelops commentedon Mar 19, 2023
@wholmgren Function pvlib.irradiance.poa_horizontal_ratio is being used in example irradiance.ipynb
also what is the following checking for?
name attribute of a float?same try-except is for many other functions in irradiance module
wholmgren commentedon Mar 20, 2023
Those notebooks are not maintained and likely will be deleted in the future.
If the inputs are series, then
ratiois also a Series and this line will assign a name to it. It's not a great pattern.[-]poa_horizontal_ratio is untested[/-][+]`pvlib.irradiance.poa_horizontal_ratio` should be removed[/+]matsuobasho commentedon Nov 10, 2023
Hi, I would like to tackle this issue. It seems like there is more to it aside from just deleting the
poa_horizontal_ratiofunction. If I delete that function, then do I do anything with thedocs/tutorials/irradiance.ipynbnotebook that uses the function?Please recommend other requirements for this issue if applicable.
Thanks.
Issue #1697 Remove the function and all its reference poa_horizontal_…