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):
619
619
620
620
def _format_arg (self , name , spec , value ):
621
621
if name == 'in_file' :
622
+ < << << << HEAD
622
623
# Concatenate a series of filenames, with optional opkeys
623
624
return ' ' .join ('%s -%s' % (mfile , opkey ) if opkey else mfile
624
625
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
625
635
return super (CatMatvec , self )._format_arg (name , spec , value )
626
636
627
-
628
637
class CenterMassInputSpec (CommandLineInputSpec ):
629
638
in_file = File (
630
639
desc = 'input file to 3dCM' ,
You can’t perform that action at this time.
0 commit comments