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
Bug Description pvsystem.get_irradiance documentation says solar_zenith can be passed as a float or a Series. However, if dni_extra is not defined and solar_zenith is passed as float, then solar_zenith.index is not defined and the call to irradiance.get_extra_irradiance with solar_zenith.index as an argument fails.
To Reproduce
Steps to reproduce the behavior: test_sys = pvsystem.PVSystem() test_sys.get_irradiance(0.0, 0.0, 0.0, 0.0, 0.0)
Error message AttributeError: 'float' object has no attribute 'index'
Expected behavior
Return a DataFrame containing the irradiance components, as specified in the documentation.
Possible solutions
Ask for datetime if dni_extra is not passed as argument
Remove float from supported types for solar_zenith