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