Skip to content

Commit d69bfd2

Browse files
authored
Merge pull request #2527 from salma1601/fix_catmatvec
ENH: Define default output file template for afni.CatMatvec
2 parents e446466 + 694d855 commit d69bfd2

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

nipype/interfaces/afni/tests/test_auto_CatMatvec.py

+3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ def test_CatMatvec_inputs():
3838
),
3939
out_file=dict(
4040
argstr=' > %s',
41+
keep_extension=False,
4142
mandatory=True,
43+
name_source='in_file',
44+
name_template='%s_cat.aff12.1D',
4245
position=-1,
4346
),
4447
outputtype=dict(),

nipype/interfaces/afni/utils.py

+4-1
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(

0 commit comments

Comments
 (0)