equinor / fmu-ensemble

Python objectification of reservoir model ensembles left on disk by ERT.
GNU General Public License v3.0
12 stars 19 forks source link

pandas Futurewarning in fmu.ensemble.realization #263

Open eivindjahren opened 1 month ago

eivindjahren commented 1 month ago

pandas is deprecating a lot of things. Running fmu-ensemble will produce the following warning with pandas 2.0 on python 3.11

...fmu/ensemble/realization.py:535: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise an error in a future version of pandas. Value '['EXIT: 1/Process exited with status code 1']' has dtype incompatible with float64, please explicitly cast to a compatible dtype first.
  status.loc[errorjobs, "errorstring"] = error_string