@@ -171,9 +171,10 @@ def run_image_file_checks(
171
171
set_resolution_level : int = 0 ,
172
172
expected_current_resolution_level : int = 0 ,
173
173
expected_resolution_levels : Tuple [int , ...] = (0 ,),
174
+ reader_kwargs : dict = dict (fs_kwargs = dict (anon = True )),
174
175
) -> ImageContainer :
175
176
# Init container
176
- image_container = ImageContainer (image , fs_kwargs = dict ( anon = True ) )
177
+ image_container = ImageContainer (image , ** reader_kwargs )
177
178
178
179
# Check for file pointers
179
180
check_local_file_not_open (image_container )
@@ -211,12 +212,13 @@ def run_multi_scene_image_read_checks(
211
212
second_scene_shape : Tuple [int , ...],
212
213
second_scene_dtype : np .dtype ,
213
214
allow_same_scene_data : bool = True ,
215
+ reader_kwargs : dict = dict (fs_kwargs = dict (anon = True )),
214
216
) -> ImageContainer :
215
217
"""
216
218
A suite of tests to ensure that data is reset when switching scenes.
217
219
"""
218
220
# Read file
219
- image_container = ImageContainer (image , fs_kwargs = dict ( anon = True ) )
221
+ image_container = ImageContainer (image , ** reader_kwargs )
220
222
221
223
check_local_file_not_open (image_container )
222
224
check_can_serialize_image_container (image_container )
@@ -279,13 +281,14 @@ def run_no_scene_name_image_read_checks(
279
281
second_scene_id : Union [str , int ],
280
282
second_scene_dtype : np .dtype ,
281
283
allow_same_scene_data : bool = True ,
284
+ reader_kwargs : dict = dict (fs_kwargs = dict (anon = True )),
282
285
) -> ImageContainer :
283
286
"""
284
287
A suite of tests to check that scene names are auto-filled when not present, and
285
288
scene switching is reflected in current_scene_index.
286
289
"""
287
290
# Read file
288
- image_container = ImageContainer (image , fs_kwargs = dict ( anon = True ) )
291
+ image_container = ImageContainer (image , ** reader_kwargs )
289
292
290
293
check_local_file_not_open (image_container )
291
294
check_can_serialize_image_container (image_container )
0 commit comments