Skip to content

Commit

Permalink
Merge pull request #3523 from MatthieuJoulot/patch-1
Browse files Browse the repository at this point in the history
FIX: Check for non-mandatory output in DWIBiasCorrect
  • Loading branch information
effigies authored Oct 17, 2022
2 parents cf264ac + ddc81d3 commit 5d436ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nipype/interfaces/mrtrix3/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ def _format_arg(self, name, trait_spec, value):

def _list_outputs(self):
outputs = self.output_spec().get()
outputs["out_file"] = op.abspath(self.inputs.out_file)
if self.inputs.out_file:
outputs["out_file"] = op.abspath(self.inputs.out_file)
if self.inputs.bias:
outputs["bias"] = op.abspath(self.inputs.bias)
return outputs
Expand Down

0 comments on commit 5d436ba

Please sign in to comment.