File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 7
7
8
8
import zarr .codecs
9
9
import zarr .storage
10
+ from zarr .core .array import init_array
11
+ from zarr .storage ._common import StorePath
10
12
11
13
if TYPE_CHECKING :
12
14
import pathlib
@@ -390,6 +392,20 @@ def test_array_order(
390
392
assert arr .metadata .order == expected_order
391
393
392
394
395
+ async def test_init_order_warns () -> None :
396
+ with pytest .warns (
397
+ RuntimeWarning , match = "The `order` keyword argument has no effect for Zarr format 3 arrays"
398
+ ):
399
+ await init_array (
400
+ store_path = StorePath (store = MemoryStore ()),
401
+ shape = (1 ,),
402
+ dtype = "uint8" ,
403
+ config = None ,
404
+ zarr_format = 3 ,
405
+ order = "F" ,
406
+ )
407
+
408
+
393
409
# def test_lazy_loader():
394
410
# foo = np.arange(100)
395
411
# bar = np.arange(100, 0, -1)
You can’t perform that action at this time.
0 commit comments