Skip to content

Commit 321d289

Browse files
ostanleymgxd
authored andcommitted
modified afni's cat_matvec to accept empty string opposed to opkey
1 parent 678709b commit 321d289

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

nipype/interfaces/afni/utils.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,12 +619,21 @@ class CatMatvec(AFNICommand):
619619

620620
def _format_arg(self, name, spec, value):
621621
if name == 'in_file':
622+
<<<<<<< HEAD
622623
# Concatenate a series of filenames, with optional opkeys
623624
return ' '.join('%s -%s' % (mfile, opkey) if opkey else mfile
624625
for mfile, opkey in value)
626+
=======
627+
xfm_args=''
628+
for v in value:
629+
if len(v[1])>0:
630+
xfm_args += ' ' + v[0] + ' -' + v[1] + ' '
631+
else:
632+
xfm_args += ' ' + v[0] + ' '
633+
return spec.argstr % (xfm_args)
634+
>>>>>>> modified afni's cat_matvec to accept empty string opposed to opkey
625635
return super(CatMatvec, self)._format_arg(name, spec, value)
626636

627-
628637
class CenterMassInputSpec(CommandLineInputSpec):
629638
in_file = File(
630639
desc='input file to 3dCM',

0 commit comments

Comments
 (0)