@@ -1093,17 +1093,17 @@ def test_get_coordinate_selection_2d(store: StorePath) -> None:
1093
1093
ix1 = np .array ([[1 , 3 , 2 ], [1 , 0 , 0 ]])
1094
1094
_test_get_coordinate_selection (a , z , (ix0 , ix1 ))
1095
1095
1096
+ selection = slice (5 , 15 ), [1 , 2 , 3 ]
1096
1097
with pytest .raises (IndexError ):
1097
- selection = slice (5 , 15 ), [1 , 2 , 3 ]
1098
1098
z .get_coordinate_selection (selection ) # type:ignore[arg-type]
1099
+ selection = [1 , 2 , 3 ], slice (5 , 15 )
1099
1100
with pytest .raises (IndexError ):
1100
- selection = [1 , 2 , 3 ], slice (5 , 15 )
1101
1101
z .get_coordinate_selection (selection ) # type:ignore[arg-type]
1102
+ selection = Ellipsis , [1 , 2 , 3 ]
1102
1103
with pytest .raises (IndexError ):
1103
- selection = Ellipsis , [1 , 2 , 3 ]
1104
1104
z .get_coordinate_selection (selection ) # type:ignore[arg-type]
1105
+ selection = Ellipsis
1105
1106
with pytest .raises (IndexError ):
1106
- selection = Ellipsis
1107
1107
z .get_coordinate_selection (selection ) # type:ignore[arg-type]
1108
1108
1109
1109
@@ -1299,14 +1299,14 @@ def test_get_block_selection_2d(store: StorePath) -> None:
1299
1299
):
1300
1300
_test_get_block_selection (a , z , selection , expected_idx )
1301
1301
1302
+ selection = slice (5 , 15 ), [1 , 2 , 3 ]
1302
1303
with pytest .raises (IndexError ):
1303
- selection = slice (5 , 15 ), [1 , 2 , 3 ]
1304
1304
z .get_block_selection (selection )
1305
+ selection = Ellipsis , [1 , 2 , 3 ]
1305
1306
with pytest .raises (IndexError ):
1306
- selection = Ellipsis , [1 , 2 , 3 ]
1307
1307
z .get_block_selection (selection )
1308
+ selection = slice (15 , 20 ), slice (None )
1308
1309
with pytest .raises (IndexError ): # out of bounds
1309
- selection = slice (15 , 20 ), slice (None )
1310
1310
z .get_block_selection (selection )
1311
1311
1312
1312
@@ -1360,14 +1360,14 @@ def test_set_block_selection_2d(store: StorePath) -> None:
1360
1360
):
1361
1361
_test_set_block_selection (v , a , z , selection , expected_idx )
1362
1362
1363
+ selection = slice (5 , 15 ), [1 , 2 , 3 ]
1363
1364
with pytest .raises (IndexError ):
1364
- selection = slice (5 , 15 ), [1 , 2 , 3 ]
1365
1365
z .set_block_selection (selection , 42 )
1366
+ selection = Ellipsis , [1 , 2 , 3 ]
1366
1367
with pytest .raises (IndexError ):
1367
- selection = Ellipsis , [1 , 2 , 3 ]
1368
1368
z .set_block_selection (selection , 42 )
1369
+ selection = slice (15 , 20 ), slice (None )
1369
1370
with pytest .raises (IndexError ): # out of bounds
1370
- selection = slice (15 , 20 ), slice (None )
1371
1371
z .set_block_selection (selection , 42 )
1372
1372
1373
1373
0 commit comments