DHI / modelskill

Compare results from MIKE and other simulations with measurements
https://dhi.github.io/modelskill
MIT License
33 stars 8 forks source link

Prepare for NumPy 2 #407

Closed ecomodeller closed 9 months ago

ecomodeller commented 9 months ago
$ ruff --preview --select NPY201
modelskill/utils.py:144:27: NPY201 [*] `np.NaN` will be removed in NumPy 2.0. Use `numpy.nan` instead.
Found 1 error.
[*] 1 fixable with the `--fix` option.

Seems like we are well prepared for this upcoming release.

The tentative release date for the first release candidate of NumPy 2.0 is around 1 Feb 2024, and the final release 6-8 weeks later. https://github.com/numpy/numpy/issues/24300

jsmariegaard commented 9 months ago

Great! Thanks