frejanordsiek / hdf5storage

Python package to read and write a wide range of Python types to/from HDF5 formatted files. Can read/write data to the HDF5 based Matlab v7.3 MAT files.
BSD 2-Clause "Simplified" License
83 stars 24 forks source link

Numpy 2.0 Compatibility #134

Open jclds139 opened 3 months ago

jclds139 commented 3 months ago

A couple sets of changes needed for Numpy 2.0, just replacing np.unicode_ with np.str_ and np.NaN with np.nan. Both are drop-in replacements for Python >= 3.6, which looks like the new version requirement. Particularly since there seems to be a plan to drop Python 2 support, these shouldn't cause further issues.

I will note, two tests are still failing, but seem unrelated to these changes:

felixdittrich92 commented 2 months ago

Hi @frejanordsiek any updates here ? :smiley: