Skip to content

Commit 96c79c9

Browse files
committed
add: _format_arg override to support tr
1 parent dc6a9ef commit 96c79c9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

nipype/interfaces/fsl/utils.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,13 @@ class Merge(FSLCommand):
169169
input_spec = MergeInputSpec
170170
output_spec = MergeOutputSpec
171171

172+
def _format_arg(self, name, spec, value):
173+
if name == 'tr':
174+
if self.inputs.dimension != 'tr':
175+
raise ValueError('When TR is specified, dimension has to be tr')
176+
return spec.argstr % value
177+
return super(FSLMerge, self)._format_arg(name, spec, value)
178+
172179

173180
class ExtractROIInputSpec(FSLCommandInputSpec):
174181
in_file = File(exists=True, argstr="%s",

0 commit comments

Comments
 (0)