Skip to content

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

@texadactyl

Description

@texadactyl

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions