Skip to content

Commit d8af3c2

Browse files
authored
Merge pull request #3476 from GalBenZvi/biascorrect
[ENH] Added outputs' generation to DWIBiascorrect interface
2 parents c7824a3 + 4c5d106 commit d8af3c2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

nipype/interfaces/mrtrix3/preprocess.py

+7
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,13 @@ def _format_arg(self, name, trait_spec, value):
242242
return f"-{trait_spec.argstr}"
243243
return super()._format_arg(name, trait_spec, value)
244244

245+
def _list_outputs(self):
246+
outputs = self.output_spec().get()
247+
outputs["out_file"] = op.abspath(self.inputs.out_file)
248+
if self.inputs.bias:
249+
outputs["bias"] = op.abspath(self.inputs.bias)
250+
return outputs
251+
245252

246253
class DWIPreprocInputSpec(MRTrix3BaseInputSpec):
247254
in_file = File(

0 commit comments

Comments
 (0)