hdf5plugin.Bitshuffle's lz4 argument is deprecated, use cname='lz4' or 'none' instead
texadactyl opened this issue · comments
Recent warning message from executing the existing hdf_writer.py (E.g. fil2h5
) with after upgrading hdf5plugin to version 4.*:
hdf5plugin._filters WARNING Deprecation: hdf5plugin.Bitshuffle's lz4 argument is deprecated, use cname='lz4' or 'none' instead.
Good news: The fix is straight-forward. After upgrading hdf5plugin to current, replace lz4=True
with cname='lz4'
in 4 places of hdf5_writer.py and re-install blimpy.
Bad news: An older version (E.g. 3.1.0) of hdf5plugin causes the following error message and blimpy failure when used with the above hdf_writer.py modifications:
TypeError("Bitshuffle.__init__() got an unexpected keyword argument 'cname'")
So, at a given site, coordination is important when updating either blimpy or hdf5plugin.