diff --git a/sdcflows/interfaces/bspline.py b/sdcflows/interfaces/bspline.py index c35dc0a2a3..767e055927 100644 --- a/sdcflows/interfaces/bspline.py +++ b/sdcflows/interfaces/bspline.py @@ -413,12 +413,10 @@ def _run_interface(self, runtime): self.inputs.in_data, self.inputs.pe_dir, self.inputs.ro_time, - xfms=self.inputs.in_xfms if isdefined(self.inputs.in_xfms) else None, + xfms=self.inputs.in_xfms or None, xfm_data2fmap=data2fmap_xfm, approx=self.inputs.approx, - num_threads=( - self.inputs.num_threads if isdefined(self.inputs.num_threads) else None - ), + num_threads=self.inputs.num_threads or None, ).to_filename(self._results["out_corrected"]) unwarp.mapped.to_filename(self._results["out_field"]) return runtime @@ -456,9 +454,7 @@ def _run_interface(self, runtime): self.inputs.fmap_ref, self.inputs.transform, fmap_target=( - self.inputs.fmap_target - if isdefined(self.inputs.fmap_target) - else None + self.inputs.fmap_target or None ), ) out_file = fname_presuffix(