Skip to content

Commit 6e40ed9

Browse files
committed
dcm2niix - Do consider exit 1 to be an error
Based on information in https://github.com/nipy/nipype/blob/ca27e5187e3c12be5b5565c73be40f7ae70c1689/nipype/interfaces/dcm2nii.py#L449-L450 > Exit code 0 is for success, exit code 1 is the undefined error. Handling of exit 1 as successful was added in 6ecd4a9 AKA 1.0.2~2^2~13
1 parent ca27e51 commit 6e40ed9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

nipype/interfaces/dcm2nii.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -446,8 +446,7 @@ def _format_arg(self, opt, spec, val):
446446
return super()._format_arg(opt, spec, val)
447447

448448
def _run_interface(self, runtime):
449-
# may use return code 1 despite conversion
450-
runtime = super()._run_interface(runtime, correct_return_codes=(0, 1))
449+
runtime = super()._run_interface(runtime)
451450
self._parse_files(self._parse_stdout(runtime.stdout))
452451
return runtime
453452

0 commit comments

Comments
 (0)