File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -783,13 +783,12 @@ def create_array(
783
783
The name of the array within the store. If ``name`` is ``None``, the array will be located
784
784
at the root of the store.
785
785
shape : ChunkCoords, optional
786
- Shape of the array. Can be ``None`` if ``data`` is provided.
786
+ Shape of the array. Must be ``None`` if ``data`` is provided.
787
787
dtype : ZDTypeLike, optional
788
- Data type of the array. Can be ``None`` if ``data`` is provided.
788
+ Data type of the array. Must be ``None`` if ``data`` is provided.
789
789
data : np.ndarray, optional
790
790
Array-like data to use for initializing the array. If this parameter is provided, the
791
- ``shape`` and ``dtype`` parameters must be identical to ``data.shape`` and ``data.dtype``,
792
- or ``None``.
791
+ ``shape`` and ``dtype`` parameters must be ``None``.
793
792
chunks : ChunkCoords, optional
794
793
Chunk shape of the array.
795
794
If not specified, default are guessed based on the shape and dtype.
Original file line number Diff line number Diff line change @@ -2476,12 +2476,11 @@ def create_array(
2476
2476
The name of the array relative to the group. If ``path`` is ``None``, the array will be located
2477
2477
at the root of the store.
2478
2478
shape : ChunkCoords, optional
2479
- Shape of the array. Can be ``None`` if ``data`` is provided.
2479
+ Shape of the array. Must be ``None`` if ``data`` is provided.
2480
2480
dtype : npt.DTypeLike | None
2481
- Data type of the array. Can be ``None`` if ``data`` is provided.
2481
+ Data type of the array. Must be ``None`` if ``data`` is provided.
2482
2482
data : Array-like data to use for initializing the array. If this parameter is provided, the
2483
- ``shape`` and ``dtype`` parameters must be identical to ``data.shape`` and ``data.dtype``,
2484
- or ``None``.
2483
+ ``shape`` and ``dtype`` parameters must be ``None``.
2485
2484
chunks : ChunkCoords, optional
2486
2485
Chunk shape of the array.
2487
2486
If not specified, default are guessed based on the shape and dtype.
You can’t perform that action at this time.
0 commit comments