Skip to content

Commit 988b01d

Browse files
committed
fix output default name
1 parent a6ddc0c commit 988b01d

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

nipype/interfaces/afni/utils.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1592,8 +1592,9 @@ class NwarpApply(AFNICommandBase):
15921592
class NwarpCatInputSpec(AFNICommandInputSpec):
15931593
in_files = traits.List(
15941594
traits.Either(
1595-
traits.File(), traits.Tuple(
1596-
traits.Enum('IDENT', 'INV', 'SQRT', 'SQRTINV'), traits.File())),
1595+
traits.File(),
1596+
traits.Tuple(traits.Enum('IDENT', 'INV', 'SQRT', 'SQRTINV'),
1597+
traits.File())),
15971598
descr="list of tuples of 3D warps and associated functions",
15981599
mandatory=True,
15991600
argstr="%s",
@@ -1684,14 +1685,15 @@ class NwarpCat(AFNICommand):
16841685

16851686
def _format_arg(self, name, spec, value):
16861687
if name == 'in_files':
1687-
return spec.argstr%(' '.join(["'" + v[0] + "(" + v[1] + ")'"
1688-
if isinstance(v, tuple) else v
1689-
for v in value]))
1688+
return spec.argstr % (' '.join(["'" + v[0] + "(" + v[1] + ")'"
1689+
if isinstance(v, tuple) else v
1690+
for v in value]))
16901691
return super(NwarpCat, self)._format_arg(name, spec, value)
16911692

16921693
def _gen_filename(self, name):
16931694
if name == 'out_file':
1694-
return self._gen_fname(self.inputs.in_files[0][0], suffix='_tcat')
1695+
return self._gen_fname(self.inputs.in_files[0][0],
1696+
suffix='_NwarpCat')
16951697

16961698
def _list_outputs(self):
16971699
outputs = self.output_spec().get()

0 commit comments

Comments
 (0)