Difference Between Codecs and Compressors #3494
Replies: 1 comment 3 replies
-
At the low level,
Specifically, zarr-python/src/zarr/core/array.py Lines 1064 to 1068 in e1990c0
zarr-python/src/zarr/core/array.py Lines 1080 to 1083 in e1990c0 and zarr-python/src/zarr/core/array.py Lines 1106 to 1110 in e1990c0 If I specify each of these, they all end up in the import zarr
a = zarr.create_array(
shape=10, dtype='f8',
filters=[zarr.codecs.Delta()],
serializer=zarr.codecs.BytesCodec(),
compressors=[zarr.codecs.ZstdCodec()],
store=zarr.storage.MemoryStore()
)
print(a.metadata.codecs)
# -> (Delta(codec_name='numcodecs.delta', codec_config={}), BytesCodec(endian=<Endian.little: 'little'>), ZstdCodec(level=0, checksum=False)) Hope this helps! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to understand what the difference between the codecs/compressors arguments in v3 and when I should use them in my code. Is there a general rule of thumb for when to specify a list of compressors vs. when to supply a list of codecs that I can reference?
Beta Was this translation helpful? Give feedback.
All reactions