-
Notifications
You must be signed in to change notification settings - Fork 5
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
Bitshuffle-compressed datasets cannot be read when accessed through a virtual dataset #43
Comments
Ha, so it works if you first select It's because the virtual compressed dataset's I'll report on the h5wasm repo. |
Ha! That's why I thought it worked in the |
I'm not sure, you can make a virtual dataset which gives access to multiple datasets stored with different compression filters... (Never seen this though) |
You can. The following snippet works without trouble: import numpy
import h5py
import hdf5plugin
with h5py.File("double_filter_vds.h5", "w") as h5file:
data = numpy.linspace(0, 10, 100)
c_dset = h5file.create_dataset(
"bitshuffle", data=data, **hdf5plugin.Bitshuffle(cname="lz4")
)
c_dset_2 = h5file.create_dataset("blosc", data=data, **hdf5plugin.Blosc2())
vlayout = h5py.VirtualLayout(shape=(200,), dtype=dset.dtype)
vsource = h5py.VirtualSource(dset)
vlayout[:100] = vsource[:]
vsource2 = h5py.VirtualSource(dset)
vlayout[100:] = vsource2[:]
h5file.create_virtual_dataset("data_via_vds", vlayout) |
Yep, Brian mentioned this as well: usnistgov/h5wasm#75 (comment) — he already released a new version of h5wasm that exposes virtual sources in the metadata. |
Should now be fixed in v0.1.6 of the extension. |
Describe the bug
Ok, this one is a stretch. Thanks to silx-kit/h5web#1524, it is now possible to read datasets compressed with
bitshuffle
. But when creating a Virtual dataset pointing such a dataset, I get the following error:Full traceback
To Reproduce
data_compressed
(a 1D dataset compressed with bitshuffle): it displays finedata_via_vds
(a VDS pointing to non-compressed datasetdata
): it displays finedata_compressed_via_vds
(you get it)vds_bug.zip
Expected behaviour
It should be able to display compressed datasets, even through a VDS. Interestingly, the h5wasm demo seems to display it fine ?
Context
The text was updated successfully, but these errors were encountered: