Skip to content

Commit 2e30271

Browse files
authored
doc: fix codec reprs in doctests (#2727)
1 parent 57d9456 commit 2e30271

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

docs/release-notes.rst

+5
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ Bug fixes
1818
Behaviour changes
1919
~~~~~~~~~~~~~~~~~
2020

21+
Documentation
22+
~~~~~~~~~~~~~
23+
24+
* Fix doctest failures related to numcodecs 0.15 (:issue:`2727`).
25+
2126
Other
2227
~~~~~
2328
* Removed some unnecessary files from the source distribution

docs/user-guide/arrays.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ built-in delta filter::
241241
>>> data = np.arange(100000000, dtype='int32').reshape(10000, 10000)
242242
>>> z = zarr.create_array(store='data/example-7.zarr', shape=data.shape, dtype=data.dtype, chunks=(1000, 1000), compressors=compressors)
243243
>>> z.compressors
244-
(_make_bytes_bytes_codec.<locals>._Codec(codec_name='numcodecs.lzma', codec_config={'id': 'lzma', 'filters': [{'id': 3, 'dist': 4}, {'id': 33, 'preset': 1}]}),)
244+
(LZMA(codec_name='numcodecs.lzma', codec_config={'filters': [{'id': 3, 'dist': 4}, {'id': 33, 'preset': 1}]}),)
245245

246246
The default compressor can be changed by setting the value of the using Zarr's
247247
:ref:`user-guide-config`, e.g.::
@@ -292,7 +292,7 @@ Here is an example using a delta filter with the Blosc compressor::
292292
Order : C
293293
Read-only : False
294294
Store type : LocalStore
295-
Filters : (_make_array_array_codec.<locals>._Codec(codec_name='numcodecs.delta', codec_config={'id': 'delta', 'dtype': 'int32'}),)
295+
Filters : (Delta(codec_name='numcodecs.delta', codec_config={'dtype': 'int32'}),)
296296
Serializer : BytesCodec(endian=<Endian.little: 'little'>)
297297
Compressors : (BloscCodec(typesize=4, cname=<BloscCname.zstd: 'zstd'>, clevel=1, shuffle=<BloscShuffle.shuffle: 'shuffle'>, blocksize=0),)
298298
No. bytes : 400000000 (381.5M)

0 commit comments

Comments
 (0)