Skip to content

Commit 0aef240

Browse files
committed
wip - split to chunks_initialized
1 parent 9118056 commit 0aef240

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

src/zarr/core/array.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2971,10 +2971,43 @@ def info(self) -> ArrayInfo:
29712971
Array.info_complete
29722972
All information about a group, including dynamic information
29732973
like the number of bytes and chunks written.
2974+
2975+
Examples
2976+
--------
2977+
>>> arr = zarr.create(shape=(10,), chunks=(2,), dtype="float32")
2978+
>>> arr.info
2979+
Type : Array
2980+
Zarr format : 3
2981+
Data type : DataType.float32
2982+
Shape : (10,)
2983+
Chunk shape : (2,)
2984+
Order : C
2985+
Read-only : False
2986+
Store type : MemoryStore
2987+
Codecs : [BytesCodec(endian=<Endian.little: 'little'>)]
2988+
No. bytes : 40
29742989
"""
29752990
return self._async_array.info
29762991

29772992
def info_complete(self) -> ArrayInfo:
2993+
"""
2994+
Returns all the information about an array, including information from the Store.
2995+
2996+
In addition to the statically known information like ``name`` and ``zarr_format``,
2997+
this includes additional information like the size of the array in bytes and
2998+
the number of chunks written.
2999+
3000+
Note that this method will need to read metadata from the store.
3001+
3002+
Returns
3003+
-------
3004+
ArrayInfo
3005+
3006+
See Also
3007+
--------
3008+
Array.info
3009+
The statically known subset of metadata about an array.
3010+
"""
29783011
return sync(self._async_array.info_complete())
29793012

29803013

0 commit comments

Comments
 (0)