Skip to content

Commit 855901c

Browse files
committed
remove chunk encoding configuration from docs
1 parent 0797c15 commit 855901c

2 files changed

Lines changed: 1 addition & 29 deletions

File tree

docs/user-guide/arrays.rst

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -246,16 +246,6 @@ built-in delta filter::
246246
>>> z.compressors
247247
(LZMA(codec_name='numcodecs.lzma', codec_config={'filters': [{'id': 3, 'dist': 4}, {'id': 33, 'preset': 1}]}),)
248248

249-
The default compressor can be changed by setting the value of the using Zarr's
250-
:ref:`user-guide-config`, e.g.::
251-
252-
>>> with zarr.config.set({'array.v2_default_compressor.default': {'id': 'blosc'}}):
253-
... z = zarr.create_array(store={}, shape=(100000000,), chunks=(1000000,), dtype='int32', zarr_format=2)
254-
>>> z.filters
255-
()
256-
>>> z.compressors
257-
(Blosc(cname='lz4', clevel=5, shuffle=SHUFFLE, blocksize=0),)
258-
259249
To disable compression, set ``compressors=None`` when creating an array, e.g.::
260250

261251
>>> z = zarr.create_array(store='data/example-8.zarr', shape=(100000000,), chunks=(1000000,), dtype='int32', compressors=None)

docs/user-guide/config.rst

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -43,25 +43,7 @@ This is the current default configuration::
4343

4444
>>> zarr.config.pprint()
4545
{'array': {'order': 'C',
46-
'v2_default_compressor': {'default': {'checksum': False,
47-
'id': 'zstd',
48-
'level': 0},
49-
'variable-length-string': {'checksum': False,
50-
'id': 'zstd',
51-
'level': 0}},
52-
'v2_default_filters': {'default': None,
53-
'variable-length-string': [{'id': 'vlen-utf8'}]},
54-
'v3_default_compressors': {'default': [{'configuration': {'checksum': False,
55-
'level': 0},
56-
'name': 'zstd'}],
57-
'variable-length-string': [{'configuration': {'checksum': False,
58-
'level': 0},
59-
'name': 'zstd'}]},
60-
'v3_default_filters': {'default': [], 'variable-length-string': []},
61-
'v3_default_serializer': {'default': {'configuration': {'endian': 'little'},
62-
'name': 'bytes'},
63-
'variable-length-string': {'name': 'vlen-utf8'}},
64-
'write_empty_chunks': False},
46+
'write_empty_chunks': False},
6547
'async': {'concurrency': 10, 'timeout': None},
6648
'buffer': 'zarr.buffer.cpu.Buffer',
6749
'codec_pipeline': {'batch_size': 1,

0 commit comments

Comments
 (0)