Skip to content

Commit 14cd08c

Browse files
committed
some work on testing compressor as filter equivalence
1 parent fc26ec7 commit 14cd08c

File tree

5 files changed

+565
-278
lines changed

5 files changed

+565
-278
lines changed

docs/tutorial.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,14 +254,14 @@ the primary compressor.
254254

255255
Here is an example using the Zarr delta filter with the Blosc compressor:
256256

257-
>>> filters = [zarr.DeltaFilter(dtype='i4', astype='u1')]
257+
>>> filters = [zarr.DeltaFilter(dtype='i4')]
258258
>>> z = zarr.array(np.arange(100000000, dtype='i4').reshape(10000, 10000),
259259
... chunks=(1000, 1000), filters=filters, compression='blosc',
260-
... compression_opts=dict(cname='zstd', clevel=1, shuffle=0))
260+
... compression_opts=dict(cname='zstd', clevel=1, shuffle=1))
261261
>>> z
262262
zarr.core.Array((10000, 10000), int32, chunks=(1000, 1000), order=C)
263-
compression: blosc; compression_opts: {'clevel': 1, 'cname': 'zstd', 'shuffle': 0}
264-
nbytes: 381.5M; nbytes_stored: 34.8K; ratio: 11221.5; initialized: 100/100
263+
compression: blosc; compression_opts: {'clevel': 1, 'cname': 'zstd', 'shuffle': 1}
264+
nbytes: 381.5M; nbytes_stored: 381.9K; ratio: 1022.9; initialized: 100/100
265265
filters: delta
266266
store: builtins.dict
267267

0 commit comments

Comments
 (0)