Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hdf5plugin.Bitshuffle's lz4 argument is deprecated, use cname='lz4' or 'none' instead #278

Open
texadactyl opened this issue Apr 17, 2023 · 0 comments

Comments

@texadactyl
Copy link
Contributor

texadactyl commented Apr 17, 2023

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.

See silx-kit/hdf5plugin#171

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant