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
Error in scaling.py when sampling rate faster than 1s. #1257
Describe the bug scaling._compute_wavelet(clearsky_index) produces OverflowError when passing it a pandas.Series type with a time resolution less than one second. Bug occurs due to the way dt is calculated for pandas types. Using pd.timedelta.seconds coerces to an integer seconds, resulting in value of zero. Produces infinity later when we take the log of dt.
Will write test for this case and submit pull request.
Current Workaround if anybody is actually running into this:
convert Series to np.array and manually specify dt in call. Example when kt is a pandas.Series: pvlib.scaling.wvm(np.array(kt), positions, cloud_speed, dt=0.01)
Activity