File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change
1
+ Make config param optional in init_array
Original file line number Diff line number Diff line change @@ -4444,7 +4444,7 @@ async def init_array(
4444
4444
chunk_key_encoding : ChunkKeyEncodingLike | None = None ,
4445
4445
dimension_names : DimensionNames = None ,
4446
4446
overwrite : bool = False ,
4447
- config : ArrayConfigLike | None ,
4447
+ config : ArrayConfigLike | None = None ,
4448
4448
) -> AsyncArray [ArrayV3Metadata ] | AsyncArray [ArrayV2Metadata ]:
4449
4449
"""Create and persist an array metadata document.
4450
4450
@@ -4524,8 +4524,10 @@ async def init_array(
4524
4524
Zarr format 3 only. Zarr format 2 arrays should not use this parameter.
4525
4525
overwrite : bool, default False
4526
4526
Whether to overwrite an array with the same name in the store, if one exists.
4527
- config : ArrayConfigLike or None, optional
4527
+ config : ArrayConfigLike or None, default=None
4528
4528
Configuration for this array.
4529
+ If ``None``, the default array runtime configuration will be used. This default
4530
+ is stored in the global configuration object.
4529
4531
4530
4532
Returns
4531
4533
-------
Original file line number Diff line number Diff line change @@ -46,4 +46,4 @@ def has_cupy() -> bool:
46
46
47
47
# Decorator for GPU tests
48
48
def gpu_test (func : T ) -> T :
49
- return cast ("T" , gpu_mark (skip_if_no_gpu (func )))
49
+ return cast (T , gpu_mark (skip_if_no_gpu (func )))
Original file line number Diff line number Diff line change @@ -440,7 +440,6 @@ async def test_init_order_warns() -> None:
440
440
store_path = StorePath (store = MemoryStore ()),
441
441
shape = (1 ,),
442
442
dtype = "uint8" ,
443
- config = None ,
444
443
zarr_format = 3 ,
445
444
order = "F" ,
446
445
)
You can’t perform that action at this time.
0 commit comments