44from imcflibs .imagej import bdv
55
66
7- def set_default_values (project_filename , file_path , series_type = "Tiles" ):
7+ def set_default_values (
8+ project_filename , file_path , series_type = "Tiles"
9+ ):
810 """Set the default values for dataset definitions.
911
1012 Parameters
@@ -17,7 +19,7 @@ def set_default_values(project_filename, file_path, series_type="Tiles"):
1719 Type of Bioformats series (default is "Tiles")
1820
1921 Returns
20- ----------
22+ -------
2123 str
2224 Start of the options for dataset definitions.
2325 """
@@ -44,8 +46,7 @@ def set_default_values(project_filename, file_path, series_type="Tiles"):
4446
4547
4648def test_define_dataset_auto_tile (tmp_path , caplog ):
47- """
48- Test automatic dataset definition method for tile series.
49+ """Test automatic dataset definition method for tile series.
4950
5051 Parameters
5152 ----------
@@ -103,14 +104,15 @@ def test_define_dataset_auto_tile(tmp_path, caplog):
103104 final_call = "IJ.run(cmd=[%s], params=[%s])" % (cmd , options )
104105
105106 # Define the dataset using the "Auto-Loader" option
106- bdv .define_dataset_auto (project_filename , file_info ["path" ], bf_series_type )
107+ bdv .define_dataset_auto (
108+ project_filename , file_info ["path" ], bf_series_type
109+ )
107110 # Check if the final call is in the log
108111 assert final_call == caplog .messages [0 ]
109112
110113
111114def test_define_dataset_auto_angle (tmp_path , caplog ):
112- """
113- Test automatic dataset definition method for angle series.
115+ """Test automatic dataset definition method for angle series.
114116
115117 Parameters
116118 ----------
@@ -142,7 +144,9 @@ def test_define_dataset_auto_angle(tmp_path, caplog):
142144 cmd = "Define Multi-View Dataset"
143145
144146 # Set the default values for dataset definitions
145- options = set_default_values (project_filename , file_path , bf_series_type )
147+ options = set_default_values (
148+ project_filename , file_path , bf_series_type
149+ )
146150
147151 # Construct the options for dataset definitions
148152 options = (
@@ -169,6 +173,8 @@ def test_define_dataset_auto_angle(tmp_path, caplog):
169173 final_call = "IJ.run(cmd=[%s], params=[%s])" % (cmd , options )
170174
171175 # Define the dataset using the "Auto-Loader" option
172- bdv .define_dataset_auto (project_filename , file_info ["path" ], bf_series_type )
176+ bdv .define_dataset_auto (
177+ project_filename , file_info ["path" ], bf_series_type
178+ )
173179 # Check if the final call is in the log
174180 assert final_call == caplog .messages [0 ]
0 commit comments