From ddc81d336b25d6e469a9bb2094f36340c3c6f8d1 Mon Sep 17 00:00:00 2001 From: Matthieu Joulot <85217698+MatthieuJoulot@users.noreply.github.com> Date: Thu, 29 Sep 2022 17:34:42 +0200 Subject: [PATCH] Update nipype/interfaces/mrtrix3/preprocess.py Co-authored-by: Chris Markiewicz --- nipype/interfaces/mrtrix3/preprocess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nipype/interfaces/mrtrix3/preprocess.py b/nipype/interfaces/mrtrix3/preprocess.py index c29e4904a4..a097295eea 100644 --- a/nipype/interfaces/mrtrix3/preprocess.py +++ b/nipype/interfaces/mrtrix3/preprocess.py @@ -256,8 +256,8 @@ def _format_arg(self, name, trait_spec, value): return super()._format_arg(name, trait_spec, value) def _list_outputs(self): + outputs = self.output_spec().get() if self.inputs.out_file: - outputs = self.output_spec().get() outputs["out_file"] = op.abspath(self.inputs.out_file) if self.inputs.bias: outputs["bias"] = op.abspath(self.inputs.bias)