File tree Expand file tree Collapse file tree 5 files changed +8
-7
lines changed Expand file tree Collapse file tree 5 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ This is the current default configuration::
62
62
'numcodecs.delta': 'zarr.codecs.numcodecs.Delta',
63
63
'numcodecs.fixedscaleoffset': 'zarr.codecs.numcodecs.FixedScaleOffset',
64
64
'numcodecs.fletcher32': 'zarr.codecs.numcodecs.Fletcher32',
65
- 'numcodecs.gZip ': 'zarr.codecs.numcodecs.GZip',
65
+ 'numcodecs.gzip ': 'zarr.codecs.numcodecs.GZip',
66
66
'numcodecs.jenkins_lookup3': 'zarr.codecs.numcodecs.JenkinsLookup3',
67
67
'numcodecs.lz4': 'zarr.codecs.numcodecs.LZ4',
68
68
'numcodecs.lzma': 'zarr.codecs.numcodecs.LZMA',
Original file line number Diff line number Diff line change 3
3
4
4
These codecs were previously defined in :py:mod:`numcodecs`, and have now been moved to `zarr`.
5
5
6
+ >>> import numpy as np
6
7
>>> import zarr
7
8
>>> import zarr.codecs.numcodecs as numcodecs
8
9
>>>
11
12
... shape=(1024, 1024),
12
13
... chunks=(64, 64),
13
14
... dtype="uint32",
14
- ... filters=[numcodecs.zarr3. Delta()],
15
- ... compressors=[numcodecs.zarr3. BZ2(level=5)])
16
- >>> array[:] = np.arange(* array.shape).astype( array.dtype )
15
+ ... filters=[numcodecs.Delta(dtype="uint32" )],
16
+ ... compressors=[numcodecs.BZ2(level=5)])
17
+ >>> array[:] = np.arange(np.prod( array.shape), dtype=array.dtype).reshape(* array.shape )
17
18
18
19
.. note::
19
20
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ def enable_gpu(self) -> ConfigSet:
138
138
"numcodecs.delta" : "zarr.codecs.numcodecs.Delta" ,
139
139
"numcodecs.fixedscaleoffset" : "zarr.codecs.numcodecs.FixedScaleOffset" ,
140
140
"numcodecs.fletcher32" : "zarr.codecs.numcodecs.Fletcher32" ,
141
- "numcodecs.gZip " : "zarr.codecs.numcodecs.GZip" ,
141
+ "numcodecs.gzip " : "zarr.codecs.numcodecs.GZip" ,
142
142
"numcodecs.jenkins_lookup3" : "zarr.codecs.numcodecs.JenkinsLookup3" ,
143
143
"numcodecs.pcodec" : "zarr.codecs.numcodecs.PCodec" ,
144
144
"numcodecs.packbits" : "zarr.codecs.numcodecs.PackBits" ,
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ def codec_conf() -> Iterator[Any]:
35
35
"numcodecs.delta" : "zarr.codecs.numcodecs.Delta" ,
36
36
"numcodecs.fixedscaleoffset" : "zarr.codecs.numcodecs.FixedScaleOffset" ,
37
37
"numcodecs.fletcher32" : "zarr.codecs.numcodecs.Fletcher32" ,
38
- "numcodecs.gZip " : "zarr.codecs.numcodecs.GZip" ,
38
+ "numcodecs.gzip " : "zarr.codecs.numcodecs.GZip" ,
39
39
"numcodecs.jenkinslookup3" : "zarr.codecs.numcodecs.JenkinsLookup3" ,
40
40
"numcodecs.pcodec" : "zarr.codecs.numcodecs.PCodec" ,
41
41
"numcodecs.packbits" : "zarr.codecs.numcodecs.PackBits" ,
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ def test_config_defaults_set() -> None:
86
86
"numcodecs.delta" : "zarr.codecs.numcodecs.Delta" ,
87
87
"numcodecs.fixedscaleoffset" : "zarr.codecs.numcodecs.FixedScaleOffset" ,
88
88
"numcodecs.fletcher32" : "zarr.codecs.numcodecs.Fletcher32" ,
89
- "numcodecs.gZip " : "zarr.codecs.numcodecs.GZip" ,
89
+ "numcodecs.gzip " : "zarr.codecs.numcodecs.GZip" ,
90
90
"numcodecs.jenkins_lookup3" : "zarr.codecs.numcodecs.JenkinsLookup3" ,
91
91
"numcodecs.pcodec" : "zarr.codecs.numcodecs.PCodec" ,
92
92
"numcodecs.packbits" : "zarr.codecs.numcodecs.PackBits" ,
You can’t perform that action at this time.
0 commit comments