Skip to content

Commit 4c5d106

Browse files
committed
added outputs' generation
1 parent b410d08 commit 4c5d106

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)