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
Address several numpy/pandas deprecation warnings; clean up test output (#1930)
* install pytest-remotedata from conda-forge
The version in default channel is old. Version in conda-forge is up to date and contains a fix for this deprecation warning:
DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
* nix `unit='T'` in pd.to_timedelta
Use `unit='minutes'` instead of `unit='T'` ('T' was deprecated in pandas 2.1). Fixes:
FutureWarning: Unit 'T' is deprecated and will be removed in a future version.
* Fix StringIO error regex for python 3.12
* use iloc with pandas Series
Fixes:
FutureWarning: Series.__setitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To set a value by position, use `ser.iloc[pos] = value`
* use pandas bfill()/ffill() instead of fillna(method='...')
Fixes:
FutureWarning: DataFrame.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.
* avoid incompatible dtypes in solarposition.ephemeris
Fixes:
FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '[69.43454873]' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.
* convert np array of length 1 to scalar
Fixes:
DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
* use numpy.errstate in bifacial.utils tests
Fixes:
RuntimeWarning: invalid value encountered in multiply
RuntimeWarning: invalid value encountered in scalar multiply
* Fix another pandas iloc warning
Fixes:
FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`
0 commit comments