Skip to content

Commit 4b8ac92

Browse files
name template for Blur interface
1 parent 9918d8b commit 4b8ac92

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

nipype/interfaces/minc/minc.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1591,7 +1591,11 @@ class BlurInputSpec(CommandLineInputSpec):
15911591
output_file_base = File(
15921592
desc='output file base',
15931593
argstr='%s',
1594-
position=-1)
1594+
position=-1,
1595+
name_source=['input_file'],
1596+
hash_files=False,
1597+
name_template='%s_blur',
1598+
keep_extension=False)
15951599

15961600
clobber = traits.Bool(
15971601
desc='Overwrite existing file.',
@@ -1726,9 +1730,7 @@ def _gen_output_base(self):
17261730
return output_base
17271731

17281732
def _list_outputs(self):
1729-
outputs = self.output_spec().get()
1730-
1731-
output_file_base = self._gen_output_base()
1733+
outputs = super(Gennlxfm, self)._list_outputs()
17321734

17331735
outputs['output_file'] = output_file_base + '_blur.mnc'
17341736

0 commit comments

Comments
 (0)