comet-toolkit / obsarray

Measurement uncertainty handling in Python
GNU Lesser General Public License v3.0
7 stars 1 forks source link

Update `get_default_fill_value` to be compatible with numpy >=2.0.0 #35

Closed mattgoalen closed 2 days ago

mattgoalen commented 2 days ago

Silent truncation of values is no longer supported in the newest numpy versions (see NEP 50 ).

numpy.uint8(-1) has therefore been replaced with numpy.iinfo(numpy.uint8).max in get_default_fill_value, and further related modifications were made. The constraint on netcdf4 was there to constrain the numpy version to <2.0.0 and is therefore no longer required and has been removed.