ecmwf / earthkit

Python tools to work with weather and climate data
https://earthkit.readthedocs.io/
Apache License 2.0
40 stars 3 forks source link

Use numpy < 2.0.0 #51

Closed sandorkertesz closed 3 months ago

sandorkertesz commented 3 months ago

It seems using numpy 2 causes a problem for cf_units and the tests fail:

../_temp/venv/lib/python3.10/site-packages/cf_units/__init__.py:23: in <module>
    from cf_units import _udunits2 as _ud
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

>   ???
E   ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

cf_units/_udunits2.pyx:1: ValueError

Until this problem is fixed in cf_units we restrict numpy to versions < 2.0.0.