@@ -1093,17 +1093,17 @@ def test_get_coordinate_selection_2d(store: StorePath) -> None:
10931093 ix1 = np .array ([[1 , 3 , 2 ], [1 , 0 , 0 ]])
10941094 _test_get_coordinate_selection (a , z , (ix0 , ix1 ))
10951095
1096+ selection = slice (5 , 15 ), [1 , 2 , 3 ]
10961097 with pytest .raises (IndexError ):
1097- selection = slice (5 , 15 ), [1 , 2 , 3 ]
10981098 z .get_coordinate_selection (selection ) # type:ignore[arg-type]
1099+ selection = [1 , 2 , 3 ], slice (5 , 15 )
10991100 with pytest .raises (IndexError ):
1100- selection = [1 , 2 , 3 ], slice (5 , 15 )
11011101 z .get_coordinate_selection (selection ) # type:ignore[arg-type]
1102+ selection = Ellipsis , [1 , 2 , 3 ]
11021103 with pytest .raises (IndexError ):
1103- selection = Ellipsis , [1 , 2 , 3 ]
11041104 z .get_coordinate_selection (selection ) # type:ignore[arg-type]
1105+ selection = Ellipsis
11051106 with pytest .raises (IndexError ):
1106- selection = Ellipsis
11071107 z .get_coordinate_selection (selection ) # type:ignore[arg-type]
11081108
11091109
@@ -1299,14 +1299,14 @@ def test_get_block_selection_2d(store: StorePath) -> None:
12991299 ):
13001300 _test_get_block_selection (a , z , selection , expected_idx )
13011301
1302+ selection = slice (5 , 15 ), [1 , 2 , 3 ]
13021303 with pytest .raises (IndexError ):
1303- selection = slice (5 , 15 ), [1 , 2 , 3 ]
13041304 z .get_block_selection (selection )
1305+ selection = Ellipsis , [1 , 2 , 3 ]
13051306 with pytest .raises (IndexError ):
1306- selection = Ellipsis , [1 , 2 , 3 ]
13071307 z .get_block_selection (selection )
1308+ selection = slice (15 , 20 ), slice (None )
13081309 with pytest .raises (IndexError ): # out of bounds
1309- selection = slice (15 , 20 ), slice (None )
13101310 z .get_block_selection (selection )
13111311
13121312
@@ -1360,14 +1360,14 @@ def test_set_block_selection_2d(store: StorePath) -> None:
13601360 ):
13611361 _test_set_block_selection (v , a , z , selection , expected_idx )
13621362
1363+ selection = slice (5 , 15 ), [1 , 2 , 3 ]
13631364 with pytest .raises (IndexError ):
1364- selection = slice (5 , 15 ), [1 , 2 , 3 ]
13651365 z .set_block_selection (selection , 42 )
1366+ selection = Ellipsis , [1 , 2 , 3 ]
13661367 with pytest .raises (IndexError ):
1367- selection = Ellipsis , [1 , 2 , 3 ]
13681368 z .set_block_selection (selection , 42 )
1369+ selection = slice (15 , 20 ), slice (None )
13691370 with pytest .raises (IndexError ): # out of bounds
1370- selection = slice (15 , 20 ), slice (None )
13711371 z .set_block_selection (selection , 42 )
13721372
13731373
0 commit comments