Skip to content

Commit 595f918

Browse files
committed
fix catmatvec hash and output
1 parent e446466 commit 595f918

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

nipype/interfaces/afni/utils.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,8 +564,11 @@ class CatMatvecInputSpec(AFNICommandInputSpec):
564564
argstr="%s",
565565
position=-2)
566566
out_file = File(
567-
desc="File to write concattenated matvecs to",
568567
argstr=" > %s",
568+
name_template='%s_cat.aff12.1D',
569+
name_source='in_file',
570+
keep_extension=False,
571+
desc="File to write concattenated matvecs to",
569572
position=-1,
570573
mandatory=True)
571574
matrix = traits.Bool(
@@ -616,6 +619,13 @@ def _format_arg(self, name, spec, value):
616619
for i in value]))
617620
return super(CatMatvec, self)._format_arg(name, spec, value)
618621

622+
def _list_outputs(self):
623+
outputs = self.output_spec().get()
624+
625+
if self.inputs.out_file:
626+
outputs['out_file'] = op.abspath(self.inputs.out_file)
627+
return outputs
628+
619629

620630
class CenterMassInputSpec(CommandLineInputSpec):
621631
in_file = File(

0 commit comments

Comments
 (0)