@@ -21,7 +21,8 @@ def create(shape, chunks=True, dtype=None, compressor='default',
21
21
fill_value = 0 , order = 'C' , store = None , synchronizer = None ,
22
22
overwrite = False , path = None , chunk_store = None , filters = None ,
23
23
cache_metadata = True , cache_attrs = True , read_only = False ,
24
- object_codec = None , dimension_separator = None , write_empty_chunks = True , ** kwargs ):
24
+ object_codec = None , dimension_separator = None ,
25
+ write_empty_chunks = False , ** kwargs ):
25
26
"""Create an array.
26
27
27
28
Parameters
@@ -72,13 +73,14 @@ def create(shape, chunks=True, dtype=None, compressor='default',
72
73
Separator placed between the dimensions of a chunk.
73
74
.. versionadded:: 2.8
74
75
write_empty_chunks : bool, optional
75
- If True (default), all chunks will be stored regardless of their
76
- contents. If False, each chunk is compared to the array's fill
77
- value prior to storing. If a chunk is uniformly equal to the fill
78
- value, then that chunk is not be stored, and the store entry for
79
- that chunk's key is deleted. This setting enables sparser storage,
80
- as only chunks with non-fill-value data are stored, at the expense
81
- of overhead associated with checking the data of each chunk.
76
+ If True, all chunks will be stored regardless of their contents. If
77
+ False (default), each chunk is compared to the array's fill value prior
78
+ to storing. If a chunk is uniformly equal to the fill value, then that
79
+ chunk is not be stored, and the store entry for that chunk's key is
80
+ deleted. This setting enables sparser storage, as only chunks with
81
+ non-fill-value data are stored, at the expense of overhead associated
82
+ with checking the data of each chunk.
83
+ .. versionadded:: 2.11
82
84
83
85
84
86
Returns
@@ -410,7 +412,7 @@ def open_array(
410
412
chunk_store = None ,
411
413
storage_options = None ,
412
414
partial_decompress = False ,
413
- write_empty_chunks = True ,
415
+ write_empty_chunks = False ,
414
416
** kwargs
415
417
):
416
418
"""Open an array using file-mode-like semantics.
@@ -466,13 +468,14 @@ def open_array(
466
468
is Blosc, when getting data from the array chunks will be partially
467
469
read and decompressed when possible.
468
470
write_empty_chunks : bool, optional
469
- If True (default), all chunks will be stored regardless of their
470
- contents. If False, each chunk is compared to the array's fill
471
- value prior to storing. If a chunk is uniformly equal to the fill
472
- value, then that chunk is not be stored, and the store entry for
473
- that chunk's key is deleted. This setting enables sparser storage,
474
- as only chunks with non-fill-value data are stored, at the expense
475
- of overhead associated with checking the data of each chunk.
471
+ If True, all chunks will be stored regardless of their contents. If
472
+ False (default), each chunk is compared to the array's fill value prior
473
+ to storing. If a chunk is uniformly equal to the fill value, then that
474
+ chunk is not be stored, and the store entry for that chunk's key is
475
+ deleted. This setting enables sparser storage, as only chunks with
476
+ non-fill-value data are stored, at the expense of overhead associated
477
+ with checking the data of each chunk.
478
+ .. versionadded:: 2.11
476
479
477
480
Returns
478
481
-------
0 commit comments