@@ -475,11 +475,19 @@ def test_ome_zarr_to_tensorstore(
475475 channels_and_random_5d , arr_name , version , concurrency
476476):
477477 """Test `iohub.ngff.Position.data` to tensorstore"""
478+ import tensorstore as ts
479+
478480 channel_names , random_5d = channels_and_random_5d
479481 with _temp_ome_zarr (
480482 random_5d , channel_names , arr_name , version = version
481483 ) as dataset :
482- tstore = dataset [arr_name ].tensorstore (concurrency = concurrency )
484+ tstore = dataset [arr_name ].tensorstore (
485+ context = (
486+ ts .Context ({"data_copy_concurrency" : {"limit" : concurrency }})
487+ if concurrency is not None
488+ else None
489+ )
490+ )
483491 assert_array_equal (tstore , random_5d )
484492 zeros = np .zeros_like (random_5d )
485493 tstore [...].write (zeros ).result ()
@@ -1288,9 +1296,9 @@ def test_hcs_external_reader(tmp_path):
12881296 fov .create_zeros ("0" , shape = (1 , 2 , 3 , y_size , x_size ), dtype = int )
12891297 n_rows = len (dataset .metadata .rows )
12901298 n_cols = len (dataset .metadata .columns )
1291- plate = list (
1292- ome_zarr . reader . Reader ( ome_zarr . io . parse_url ( store_path ))()
1293- )[ 0 ]
1299+ plate = list (ome_zarr . reader . Reader ( ome_zarr . io . parse_url ( store_path ))())[
1300+ 0
1301+ ]
12941302 assert plate .data [0 ].shape == (1 , 2 , 3 , y_size * n_rows , x_size * n_cols )
12951303 assert plate .data [0 ].dtype == int
12961304 assert not plate .data [0 ].any ()
0 commit comments