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 7306047 commit c64d7d0Copy full SHA for c64d7d0
nipype/interfaces/afni/utils.py
@@ -619,15 +619,12 @@ class CatMatvec(AFNICommand):
619
620
def _format_arg(self, name, spec, value):
621
if name == 'in_file':
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)
+ # Concatenate a series of filenames, with optional opkeys
+ return ' '.join('%s -%s' % (mfile, opkey) if opkey else mfile
+ for mfile, opkey in value)
629
return super(CatMatvec, self)._format_arg(name, spec, value)
630
+
631
class CenterMassInputSpec(CommandLineInputSpec):
632
in_file = File(
633
desc='input file to 3dCM',
0 commit comments