Skip to content

Commit cca0b1f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent dfc4550 commit cca0b1f

File tree

2 files changed

+9
-19
lines changed

2 files changed

+9
-19
lines changed

pydra/tasks/fsl/model/cluster.py

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ def Cluster_output(inputs):
6565
{
6666
"help_string": "output of local maxima volume",
6767
"argstr": "--olmaxim={out_localmax_vol_file}",
68-
"output_file_template": "{in_file}_localmax",
69-
68+
"output_file_template": "{in_file}_localmax",
7069
},
7170
),
7271
(
@@ -76,7 +75,7 @@ def Cluster_output(inputs):
7675
{
7776
"help_string": "filename for output of size image",
7877
"argstr": "--osize={out_size_file}",
79-
"output_file_template": "{in_file}_size"
78+
"output_file_template": "{in_file}_size",
8079
},
8180
),
8281
(
@@ -86,7 +85,7 @@ def Cluster_output(inputs):
8685
{
8786
"help_string": "filename for output of max image",
8887
"argstr": "--omax={out_max_file}",
89-
"output_file_template": "{in_file}_max"
88+
"output_file_template": "{in_file}_max",
9089
},
9190
),
9291
(
@@ -96,7 +95,7 @@ def Cluster_output(inputs):
9695
{
9796
"help_string": "filename for output of mean image",
9897
"argstr": "--omean={out_mean_file}",
99-
"output_file_template": "{in_file}_mean"
98+
"output_file_template": "{in_file}_mean",
10099
},
101100
),
102101
(
@@ -106,7 +105,7 @@ def Cluster_output(inputs):
106105
{
107106
"help_string": "filename for image output of log pvals",
108107
"argstr": "--opvals={out_pval_file}",
109-
"output_file_template": "{in_file}_pval"
108+
"output_file_template": "{in_file}_pval",
110109
},
111110
),
112111
(
@@ -217,13 +216,9 @@ def Cluster_output(inputs):
217216
},
218217
),
219218
]
220-
Cluster_input_spec = specs.SpecInfo(
221-
name="Input", fields=input_fields, bases=(specs.ShellSpec,)
222-
)
219+
Cluster_input_spec = specs.SpecInfo(name="Input", fields=input_fields, bases=(specs.ShellSpec,))
223220

224-
output_fields = [
225-
226-
]
221+
output_fields = []
227222
Cluster_output_spec = specs.SpecInfo(
228223
name="Output", fields=output_fields, bases=(specs.ShellOutSpec,)
229224
)
@@ -244,4 +239,4 @@ class Cluster(ShellCommandTask):
244239

245240
input_spec = Cluster_input_spec
246241
output_spec = Cluster_output_spec
247-
executable = "cluster"
242+
executable = "cluster"

pydra/tasks/fsl/model/tests/test_spec_cluster.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,7 @@
77
"inputs, outputs",
88
[
99
(
10-
{
11-
"in_file": "zstat1.nii.gz",
12-
"threshold": 2.3,
13-
"use_mm": True,
14-
"out_index_file": True
15-
},
10+
{"in_file": "zstat1.nii.gz", "threshold": 2.3, "use_mm": True, "out_index_file": True},
1611
[
1712
"out_index_file",
1813
"out_localmax_txt_file",

0 commit comments

Comments
 (0)