-
Notifications
You must be signed in to change notification settings - Fork 1.1k
pvlib.solarposition.spa_python has unused and undocumented **kwargs #1430
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
Comments
I'd support removing without deprecation. Only impact on users will be to reveal bugs in their code. |
I'll work on the issue |
@kanderso-nrel it looks like the |
Looks like |
I agree, no reason that any solar position function needs turbidity. What do you think about handling the |
If the handling raises a TypeError when something like On the other hand, I don't like trying to subset Noting that it currently doesn't work to specify solar position kwargs in Semi-related: |
I concur. |
pvlib.solarposition.spa_python
has**kwargs
in the signature, but it doesn't mention it in the docstring, and it doesn't do anything with it in the function body.pvlib-python/pvlib/solarposition.py
Lines 276 to 278 in c243183
This is bad because it silently ignores misspelled optional parameters, for example:
pvlib.solarposition.spa_python(times, 40, -80, atlitude=100)
.We could just deprecate and remove
**kwargs
like #1053:pvlib-python/pvlib/location.py
Lines 83 to 87 in a6667a3
Or we could keep
**kwargs
and pass them through tospa.solar_position()
, thereby exposing thesst
andesd
parameters. Though if we want to expose those, I'd prefer just exposing them directly instead of hiding them in**kwargs
.This could be a good "easy first issue" once we decide what the fix should be.
The text was updated successfully, but these errors were encountered: