You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating a dataset with any of the blosc filters compiles and runs with no errors, but does not compress the data at all.
If I use lzf or szip instead, the dataset is compressed as expected.
Just to be clear, the filter does appear to be applied (looking at the output of h5dump), but there is no compression.
Are there any external dependencies needed for blosc to work?
This would happen if the compressor is not available for blosc. If one specifies --features blosc-src/lz4,blosc-src/zlib one gets down to 19kB with the blosc-lz4 filter and 8kB with blosc-zlib.
It is unfortunate that we don't error on trying to apply the filter when it is not available, but instead skip it. Setting
I see, thank you. I added blosc-src = { version = "0.3.0", features = ["lz4", "zlib", "zstd"] } to Cargo.toml to make it work. May I suggest adding this to the documentation of the blosc_ functions?
Agreed that an error would be great in this case, or maybe even a more in-depth function like blosc_available that would return which of the blosc filters are available.
Creating a dataset with any of the
blosc
filters compiles and runs with no errors, but does not compress the data at all.If I use
lzf
orszip
instead, the dataset is compressed as expected.Just to be clear, the filter does appear to be applied (looking at the output of
h5dump
), but there is no compression.Are there any external dependencies needed for blosc to work?
Here is a minimal example:
Cargo.toml:
The output is:
Using
szip
, the compressed file size is 12 kB.The text was updated successfully, but these errors were encountered: