Skip to content

interfaces.afni.preprocess.Copy creates incorrect 3dcopy command #1008

Closed
@beausievers

Description

@beausievers

When using outputtype = 'AFNI', interfaces.afni.preprocess.Copy will incorrectly add the -prefix flag to the 3dcopy command, like so:

c = afni.Copy()
c.inputs.in_file = 'bold1.nii.gz'
c.inputs.out_file = 'testcopy'
c.inputs.outputtype = 'AFNI'
c.cmdline

'3dcopy -prefix testcopy bold1.nii.gz'

To which AFNI will reply:

Standard error:
++ 3dcopy: AFNI version=AFNI_2011_12_21_1014 (Sep 18 2014) [64-bit]
** FATAL ERROR: unknown option: -prefix
** Program compile date = Sep 18 2014
Return code: 1
Interface Copy failed to run.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions