hdf5storage icon indicating copy to clipboard operation
hdf5storage copied to clipboard

some numpy dtype types were missing from the NumpyScalarArrayMarshaller

Open danielhrisca opened this issue 3 years ago • 0 comments

Some of the numpy scalar types were missing. This resulted in error messages such as the following

File "D:\TMP\myapp_venv_3.9\lib\site-packages\hdf5storage\__init__.py", line 1676, in savemat
    writes(mdict=mdict, filename=file_name,
  File "D:\TMP\myapp_venv_3.9\lib\site-packages\hdf5storage\__init__.py", line 1316, in writes
    lowlevel.write_data(f, grp, targetname, data,
  File "D:\TMP\myapp_venv_3.9\lib\site-packages\hdf5storage\lowlevel.py", line 114, in write_data
    m.write(f, grp, name, data, type_string, options)
  File "D:\TMP\myapp_venv_3.9\lib\site-packages\hdf5storage\Marshallers.py", line 589, in write
    raise lowlevel.TypeNotMatlabCompatibleError( \
hdf5storage.lowlevel.TypeNotMatlabCompatibleError: Data type uint32 not supported by MATLAB.

because the input array had the typer numpy.uintc which was not found in the mapping.

danielhrisca avatar Nov 03 '21 09:11 danielhrisca