@@ -19,7 +19,8 @@ def create(shape, chunks=True, dtype=None, compressor='default',
19
19
fill_value = 0 , order = 'C' , store = None , synchronizer = None ,
20
20
overwrite = False , path = None , chunk_store = None , filters = None ,
21
21
cache_metadata = True , cache_attrs = True , read_only = False ,
22
- object_codec = None , dimension_separator = None , write_empty_chunks = True , ** kwargs ):
22
+ object_codec = None , dimension_separator = None ,
23
+ write_empty_chunks = False , ** kwargs ):
23
24
"""Create an array.
24
25
25
26
Parameters
@@ -70,13 +71,14 @@ def create(shape, chunks=True, dtype=None, compressor='default',
70
71
Separator placed between the dimensions of a chunk.
71
72
.. versionadded:: 2.8
72
73
write_empty_chunks : bool, optional
73
- If True (default), all chunks will be stored regardless of their
74
- contents. If False, each chunk is compared to the array's fill
75
- value prior to storing. If a chunk is uniformly equal to the fill
76
- value, then that chunk is not be stored, and the store entry for
77
- that chunk's key is deleted. This setting enables sparser storage,
78
- as only chunks with non-fill-value data are stored, at the expense
79
- of overhead associated with checking the data of each chunk.
74
+ If True, all chunks will be stored regardless of their contents. If
75
+ False (default), each chunk is compared to the array's fill value prior
76
+ to storing. If a chunk is uniformly equal to the fill value, then that
77
+ chunk is not be stored, and the store entry for that chunk's key is
78
+ deleted. This setting enables sparser storage, as only chunks with
79
+ non-fill-value data are stored, at the expense of overhead associated
80
+ with checking the data of each chunk.
81
+ .. versionadded:: 2.11
80
82
81
83
82
84
Returns
@@ -387,7 +389,7 @@ def open_array(
387
389
chunk_store = None ,
388
390
storage_options = None ,
389
391
partial_decompress = False ,
390
- write_empty_chunks = True ,
392
+ write_empty_chunks = False ,
391
393
** kwargs
392
394
):
393
395
"""Open an array using file-mode-like semantics.
@@ -443,13 +445,14 @@ def open_array(
443
445
is Blosc, when getting data from the array chunks will be partially
444
446
read and decompressed when possible.
445
447
write_empty_chunks : bool, optional
446
- If True (default), all chunks will be stored regardless of their
447
- contents. If False, each chunk is compared to the array's fill
448
- value prior to storing. If a chunk is uniformly equal to the fill
449
- value, then that chunk is not be stored, and the store entry for
450
- that chunk's key is deleted. This setting enables sparser storage,
451
- as only chunks with non-fill-value data are stored, at the expense
452
- of overhead associated with checking the data of each chunk.
448
+ If True, all chunks will be stored regardless of their contents. If
449
+ False (default), each chunk is compared to the array's fill value prior
450
+ to storing. If a chunk is uniformly equal to the fill value, then that
451
+ chunk is not be stored, and the store entry for that chunk's key is
452
+ deleted. This setting enables sparser storage, as only chunks with
453
+ non-fill-value data are stored, at the expense of overhead associated
454
+ with checking the data of each chunk.
455
+ .. versionadded:: 2.11
453
456
454
457
Returns
455
458
-------
0 commit comments