diff --git a/tests/bdv/test_define_dataset_auto.py b/tests/bdv/test_define_dataset_auto.py index 08c53882..05f48304 100644 --- a/tests/bdv/test_define_dataset_auto.py +++ b/tests/bdv/test_define_dataset_auto.py @@ -6,9 +6,7 @@ from imcflibs.imagej import bdv -def set_default_values( - project_filename, file_path, series_type="Tiles" -): +def set_default_values(project_filename, file_path, series_type="Tiles"): """Set the default values for dataset definitions. Parameters @@ -35,7 +33,7 @@ def set_default_values( + ".xml" + "] " + "path=[" - + file_info["path"] + + file_info["full"] + "] " + "exclude=10 " + "bioformats_series_are?=" @@ -80,7 +78,7 @@ def test_define_dataset_auto_tile(tmp_path, caplog): cmd = "Define Multi-View Dataset" # Set the default values for dataset definitions - options = set_default_values(project_filename, file_path) + options = set_default_values(project_filename, file_info["path"]) # Construct the options for dataset definitions options = ( @@ -106,9 +104,7 @@ def test_define_dataset_auto_tile(tmp_path, caplog): final_call = "IJ.run(cmd=[%s], params=[%s])" % (cmd, options) # Define the dataset using the "Auto-Loader" option - bdv.define_dataset_auto( - project_filename, file_info["path"], bf_series_type - ) + bdv.define_dataset_auto(project_filename, file_info["path"], bf_series_type) # Check if the final call is in the log assert final_call == caplog.messages[0] @@ -146,9 +142,7 @@ def test_define_dataset_auto_angle(tmp_path, caplog): cmd = "Define Multi-View Dataset" # Set the default values for dataset definitions - options = set_default_values( - project_filename, file_path, bf_series_type - ) + options = set_default_values(project_filename, file_info["path"], bf_series_type) # Construct the options for dataset definitions options = ( @@ -175,8 +169,6 @@ def test_define_dataset_auto_angle(tmp_path, caplog): final_call = "IJ.run(cmd=[%s], params=[%s])" % (cmd, options) # Define the dataset using the "Auto-Loader" option - bdv.define_dataset_auto( - project_filename, file_info["path"], bf_series_type - ) + bdv.define_dataset_auto(project_filename, file_info["path"], bf_series_type) # Check if the final call is in the log assert final_call == caplog.messages[0]