HDFGroup / h5pyd

h5py distributed - Python client library for HDF Rest API
Other
110 stars 39 forks source link

hsload change dataset's datatype class from Compound (H5T_COMPOUND) to Opaque (H5T_OPAQUE) #127

Closed trmt closed 1 year ago

trmt commented 1 year ago

If compound dataset structure contains only one sequence member, hsload change dataset type to H5T_OPAQUE due to load. Look like it happenes here https://github.com/HDFGroup/h5pyd/blob/1bd5cf9ce4a8053ecd30e224604bcefc0e567f72/h5pyd/_hl/h5type.py#L395 cause len(dt) in that case returns 1 And after that dataset get his datatype here https://github.com/HDFGroup/h5pyd/blob/1bd5cf9ce4a8053ecd30e224604bcefc0e567f72/h5pyd/_hl/h5type.py#L462

Sry for my English, try to do my best

jreadey commented 1 year ago

This fix is now in master.

jreadey commented 1 year ago

Closing - fix is in the 0.12.0 release on PyPI.