Thanks to visit codestin.com
Credit goes to github.com

Skip to content

MathsCommand().inputs.out_file has to exist #3384

Closed
@0nu

Description

@0nu

When setting MathsCommand().inputs.out_file argument, a Trait error is thrown because of the exists=True:

out_file = File(exists=True, desc="image written after calculations")

I think this doesn't make any sense, because out_file is to be created by MathsCommand().
In my case, I just want to get rid of SPM nan's in an .nii file, but I also don't want fsl_maths to append a suffix to the filename - this is why I also provide out_file to MathsCommand().inputs.
A short example:

nan2zero = pe.MapNode(interface=MathsCommand(), name='nan2zero', iterfield=['in_file', 'out_file'])
nan2zero.inputs.nan2zeros = True

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