File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,15 @@ function zcompress(a, z::ZstdCompressor)
40
40
encode (z. config, reinterpret (UInt8, vec (a)))
41
41
end
42
42
43
- JSON. lower (z:: ZstdCompressor ) = Dict (" id" => " zstd" , " level" => z. config. compressionLevel, " checksum" => z. config. checksum)
43
+ function JSON. lower (z:: ZstdCompressor )
44
+ # Matching behavior in zarr-python to work with TensorStore
45
+ # Ref https://github.com/JuliaIO/Zarr.jl/issues/193
46
+ # Hotfix for https://github.com/zarr-developers/zarr-python/issues/2647
47
+ if z. config. checksum
48
+ Dict (" id" => " zstd" , " level" => z. config. compressionLevel, " checksum" => z. config. checksum)
49
+ else
50
+ Dict (" id" => " zstd" , " level" => z. config. compressionLevel)
51
+ end
52
+ end
44
53
45
54
Zarr. compressortypes[" zstd" ] = ZstdCompressor
You can’t perform that action at this time.
0 commit comments