BIC-MNI / minc-toolkit

Metaproject uniting all the available minc tools
GNU General Public License v3.0
37 stars 15 forks source link

mincANTS exit code is 0 even when file writing failed #33

Open bcdarwin opened 8 years ago

bcdarwin commented 8 years ago

e.g., when permissions on the output file are wrong or the disk fills up (leaving a partially written file). This confuses our pipelines and causes weird errors in successive stages.

I'm also unsure which versions this affects since mincANTS doesn't seem to have a -version flag ...

vfonov commented 8 years ago

mincANTS comes from here: https://github.com/vfonov/mincANTS

vfonov commented 8 years ago

probably , the solution will be to replace ANTSex... with "return ANTSex..." around here: https://github.com/vfonov/mincANTS/blob/mincANTS/Examples/ANTS.cxx#L260