We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab4e15a commit 67b10fbCopy full SHA for 67b10fb
nipype/interfaces/afni/utils.py
@@ -617,15 +617,12 @@ class CatMatvec(AFNICommand):
617
618
def _format_arg(self, name, spec, value):
619
if name == 'in_file':
620
- xfm_args=''
621
- for v in value:
622
- if len(v[1])>0:
623
- xfm_args += ' ' + v[0] + ' -' + v[1] + ' '
624
- else:
625
- xfm_args += ' ' + v[0] + ' '
626
- return spec.argstr % (xfm_args)
+ # Concatenate a series of filenames, with optional opkeys
+ return ' '.join('%s -%s' % (mfile, opkey) if opkey else mfile
+ for mfile, opkey in value)
627
return super(CatMatvec, self)._format_arg(name, spec, value)
628
+
629
class CenterMassInputSpec(CommandLineInputSpec):
630
in_file = File(
631
desc='input file to 3dCM',
0 commit comments