Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/zarr/codecs/numcodecs/_codecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
These codecs were previously defined in :py:mod:`numcodecs`, and have now been moved to `zarr`.
>>> import numpy as np
>>> import zarr
>>> import zarr.codecs.numcodecs as numcodecs
>>>
Expand All @@ -11,9 +12,9 @@
... shape=(1024, 1024),
... chunks=(64, 64),
... dtype="uint32",
... filters=[numcodecs.zarr3.Delta()],
... compressors=[numcodecs.zarr3.BZ2(level=5)])
>>> array[:] = np.arange(*array.shape).astype(array.dtype)
... filters=[numcodecs.Delta(dtype="uint32")],
... compressors=[numcodecs.BZ2(level=5)])
>>> array[:] = np.arange(np.prod(array.shape), dtype=array.dtype).reshape(*array.shape)
.. note::
Expand Down
2 changes: 1 addition & 1 deletion src/zarr/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def enable_gpu(self) -> ConfigSet:
"numcodecs.delta": "zarr.codecs.numcodecs.Delta",
"numcodecs.fixedscaleoffset": "zarr.codecs.numcodecs.FixedScaleOffset",
"numcodecs.fletcher32": "zarr.codecs.numcodecs.Fletcher32",
"numcodecs.gZip": "zarr.codecs.numcodecs.GZip",
"numcodecs.gzip": "zarr.codecs.numcodecs.GZip",
"numcodecs.jenkins_lookup3": "zarr.codecs.numcodecs.JenkinsLookup3",
"numcodecs.pcodec": "zarr.codecs.numcodecs.PCodec",
"numcodecs.packbits": "zarr.codecs.numcodecs.PackBits",
Expand Down
Loading