Skip to content

[BUG] antsBrainExtraction interface fails when $ANTSPATH is not defined, but exit code is 0 #1901

Closed
@oesteban

Description

@oesteban

Summary

antsBrainExtraction interface fails when $ANTSPATH is not defined, but exit code is 0

How to replicate the behavior

The problem is the following

$ antsBrainExtraction.sh -h
we cant find the N4 program -- does not seem to exist. please (re)define $ANTSPATH in your environment.
$ echo $?
0

when nipype gets to check the output, since the exit code is zero, it breaks. We could check, at least, for this output message and reraise the message.

cc @rwblair .

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions