Skip to content

Commit ec5e01c

Browse files
ostanleymgxd
authored andcommitted
modified afni's cat_matvec to accept empty string opposed to opkey
1 parent 68a8bf6 commit ec5e01c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

nipype/interfaces/afni/utils.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -619,11 +619,15 @@ class CatMatvec(AFNICommand):
619619

620620
def _format_arg(self, name, spec, value):
621621
if name == 'in_file':
622-
return spec.argstr % (' '.join([i[0] + ' -' + i[1]
623-
for i in value]))
622+
xfm_args=''
623+
for v in value:
624+
if len(v[1])>0:
625+
xfm_args += ' ' + v[0] + ' -' + v[1] + ' '
626+
else:
627+
xfm_args += ' ' + v[0] + ' '
628+
return spec.argstr % (xfm_args)
624629
return super(CatMatvec, self)._format_arg(name, spec, value)
625630

626-
627631
class CenterMassInputSpec(CommandLineInputSpec):
628632
in_file = File(
629633
desc='input file to 3dCM',

0 commit comments

Comments
 (0)