Skip to content

How to compress a data which is readable for ALBULA #2

Description

@CatFootPrint

I employed the h5py and hdf5plugin packages to save NumPy arrays as *.hdf5 files compressed using the bitshuffle-lz4 algorithm. However, ALBULA fails to open the generated *.hdf5 files and terminates unexpectedly.
My code is as follows.

with h5py.File(data_destination_file, "w") as f:
    group_entry = f.create_group("entry")
    group_entry.attrs["NX_class"] = "NXentry" 
    group_data = group_entry.create_group("data")
    group_data.attrs["NX_class"] = "NXentry"
    group_data.create_dataset("data", data=data_array,  chunks=(1, 1024, 1024), compression=hdf5plugin.Bitshuffle(nelems=0, cname='lz4'))

Could you please tell me the reason why my ALBULA does not work.
Thanks a lot!

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions