We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 147b9e0 commit 6e605ebCopy full SHA for 6e605eb
src/zarr/codecs/numcodecs/_codecs.py
@@ -3,6 +3,7 @@
3
4
These codecs were previously defined in :py:mod:`numcodecs`, and have now been moved to `zarr`.
5
6
+>>> import numpy as np
7
>>> import zarr
8
>>> import zarr.codecs.numcodecs as numcodecs
9
>>>
@@ -11,9 +12,9 @@
11
12
... shape=(1024, 1024),
13
... chunks=(64, 64),
14
... dtype="uint32",
-... filters=[numcodecs.zarr3.Delta()],
15
-... compressors=[numcodecs.zarr3.BZ2(level=5)])
16
->>> array[:] = np.arange(*array.shape).astype(array.dtype)
+... filters=[numcodecs.Delta(dtype="uint32")],
+... compressors=[numcodecs.BZ2(level=5)])
17
+>>> array[:] = np.arange(np.prod(array.shape), dtype=array.dtype).reshape(*array.shape)
18
19
.. note::
20
0 commit comments