Skip to content

Commit ba6f859

Browse files
committed
replaced out_filename with out_file (after I properly understood how output_file_template should be used)
1 parent 6ea1ada commit ba6f859

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

pydra/tasks/mrtrix3/utils.py

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,12 @@
2323
),
2424
),
2525
(
26-
"out_filename",
26+
"out_file",
2727
attr.ib(
28-
type=str,
28+
type=File,
2929
metadata={
30-
"argstr": "{out_filename}",
31-
"position": -1,
3230
"help_string": "output image",
31+
"output_file_template": "{in_file}_converted",
3332
},
3433
),
3534
),
@@ -38,7 +37,7 @@
3837
attr.ib(
3938
type=ty.List[float],
4039
metadata={
41-
"sep": ",",
40+
"sep": " ",
4241
"argstr": "-coord",
4342
"help_string": "extract data at the specific coordinatest",
4443
},
@@ -104,16 +103,6 @@
104103
MRConvertOutputSpec = SpecInfo(
105104
name="MRConvertOutputs",
106105
fields=[
107-
(
108-
"out_file",
109-
attr.ib(
110-
type=File,
111-
metadata={
112-
"help_string": "output image",
113-
"output_file_template": "{out_filename}",
114-
},
115-
),
116-
),
117106
(
118107
"out_bfile",
119108
attr.ib(
@@ -147,7 +136,7 @@ class MRConvert(ShellCommandTask):
147136
>>> task.inputs.in_file = "test_dwi.nii.gz"
148137
>>> task.inputs.grad_fsl = ["test.bvec", "test.bval"]
149138
>>> task.inputs.export_grad = "test.b"
150-
>>> task.inputs.out_filename = "test.mif"
139+
>>> task.inputs.out_file = "test.mif"
151140
>>> task.cmdline
152141
'mrconvert test_dwi.nii.gz -fslgrad test.bvec test.bval -export_grad_mrtrix test.b test.mif'
153142
"""

0 commit comments

Comments
 (0)