Skip to content

Commit 41b301b

Browse files
committed
Format using Ruff
1 parent c8fcff3 commit 41b301b

File tree

3 files changed

+24
-11
lines changed

3 files changed

+24
-11
lines changed

Diff for: tests/bdv/test_define_dataset_auto.py

+15-9
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
from 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

4648
def 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

111114
def 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]

Diff for: tests/bdv/test_definitionoptions.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import pytest
2+
23
from imcflibs.imagej.bdv import DefinitionOptions
34

45

Diff for: tests/bdv/test_processingoptions.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ def test_defaults():
1818
"how_to_treat_tiles=compare "
1919
"how_to_treat_timepoints=[treat individually] "
2020
)
21-
use_acitt = "channels=[Average Channels] " "illuminations=[Average Illuminations] "
21+
use_acitt = (
22+
"channels=[Average Channels] "
23+
"illuminations=[Average Illuminations] "
24+
)
2225

2326
proc_opts = ProcessingOptions()
2427

@@ -47,7 +50,10 @@ def test__treat_tc_ti__ref_c1():
4750
"how_to_treat_tiles=compare "
4851
"how_to_treat_timepoints=[treat individually] "
4952
)
50-
use_acitt = "channels=[use Channel 1] " "illuminations=[Average Illuminations] "
53+
use_acitt = (
54+
"channels=[use Channel 1] "
55+
"illuminations=[Average Illuminations] "
56+
)
5157

5258
proc_opts = ProcessingOptions()
5359
proc_opts.treat_tiles("compare")

0 commit comments

Comments
 (0)