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 68a8bf6 commit ec5e01cCopy full SHA for ec5e01c
nipype/interfaces/afni/utils.py
@@ -619,11 +619,15 @@ class CatMatvec(AFNICommand):
619
620
def _format_arg(self, name, spec, value):
621
if name == 'in_file':
622
- return spec.argstr % (' '.join([i[0] + ' -' + i[1]
623
- for i in value]))
+ xfm_args=''
+ 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)
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