silx-kit / hdf5plugin

Set of compression filters for h5py
http://www.silx.org/doc/hdf5plugin/latest/
Other
66 stars 25 forks source link

Fixed `hdf5plugin.Bitshuffle` to avoid raising `ValueError` when `lz4=False` #309

Closed psteinb closed 5 months ago

psteinb commented 5 months ago

Just ran into this problem and would like to avoid other users to see a ValueError if they do:

f = h5py.File('test.h5', 'w')
f.create_dataset(
    'bitshuffle_with_lz4',
    data=numpy.arange(100),
    **hdf5plugin.Bitshuffle(nelems=0, lz4=False, cname='zstd'))
f.close()