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
Describe the bug
When the weather timeseries inputs to temperature.fuentes have tz-aware index, an internal call to np.diff(index) returns an array of Timedelta objects instead of an array of nanosecond ints, throwing an error immediately after. The error only happens when using pandas>=1.0.0; using 0.25.3 runs successfully, but emits the warning:
/home/kevin/anaconda3/envs/pvlib-dev/lib/python3.7/site-packages/numpy/lib/function_base.py:1243: FutureWarning: Converting timezone-aware DatetimeArray to timezone-naive ndarray with 'datetime64[ns]' dtype. In the future, this will return an ndarray with 'object' dtype where each element is a 'pandas.Timestamp' with the correct 'tz'.
To accept the future behavior, pass 'dtype=object'.
To keep the old behavior, pass 'dtype="datetime64[ns]"'.
a = asanyarray(a)
Describe the bug
When the weather timeseries inputs to
temperature.fuentes
have tz-aware index, an internal call tonp.diff(index)
returns an array ofTimedelta
objects instead of an array of nanosecond ints, throwing an error immediately after. The error only happens when using pandas>=1.0.0; using 0.25.3 runs successfully, but emits the warning:To Reproduce
Expected behavior
temperature.fuentes
should work with both tz-naive and tz-aware inputs.Versions:
pvlib.__version__
: 0.8.0pandas.__version__
: 1.0.0+The text was updated successfully, but these errors were encountered: