Skip to content

Commit 4eb817f

Browse files
committed
Make WarpTimeSeriesImageMultiTransform not crash due to wrong return
code.
1 parent d5b19d1 commit 4eb817f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nipype/interfaces/ants/resampling.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ def _list_outputs(self):
9999
self.inputs.out_postfix,
100100
ext)))
101101
return outputs
102+
103+
def _run_interface(self, runtime):
104+
runtime = super(WarpTimeSeriesImageMultiTransform, self)._run_interface(runtime, correct_return_codes = [0,1])
105+
if "100 % complete" not in runtime.stdout:
106+
self.raise_exception(runtime)
107+
return runtime
102108

103109

104110
class WarpImageMultiTransformInputSpec(ANTSCommandInputSpec):

0 commit comments

Comments
 (0)