HDFGroup / h5pyd

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

h5pyd dataset.chunks not compatible with h5py #130

Closed jreadey closed 1 year ago

jreadey commented 1 year ago

dataset.chunks can return a dict object for h5pyd datasets that are linked to HDF5 files. This could cause some compatibility problems when converting scripts to use h5pyd.

jreadey commented 1 year ago

With the above checkin, dset.chunks always returns None or a tuple. Note: if you need the information formerly returned by dset.chunks as a dict, you can get the chunk layout using dset.id.layout. E.g:

{'class': 'H5D_CHUNKED_REF_INDIRECT',
'dims': [1, 500000, 1],
'chunk_table': 'd-889b0036-04f59506-3f58-c1ea8e-320902'}
jreadey commented 1 year ago

This is merged into master.