File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff 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-
628637class CenterMassInputSpec (CommandLineInputSpec ):
629638 in_file = File (
630639 desc = 'input file to 3dCM' ,
You can’t perform that action at this time.
0 commit comments