Skip to content

Commit 5d436ba

Browse files
authored
Merge pull request #3523 from MatthieuJoulot/patch-1
FIX: Check for non-mandatory output in DWIBiasCorrect
2 parents cf264ac + ddc81d3 commit 5d436ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nipype/interfaces/mrtrix3/preprocess.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,8 @@ def _format_arg(self, name, trait_spec, value):
257257

258258
def _list_outputs(self):
259259
outputs = self.output_spec().get()
260-
outputs["out_file"] = op.abspath(self.inputs.out_file)
260+
if self.inputs.out_file:
261+
outputs["out_file"] = op.abspath(self.inputs.out_file)
261262
if self.inputs.bias:
262263
outputs["bias"] = op.abspath(self.inputs.bias)
263264
return outputs

0 commit comments

Comments
 (0)