Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Mathias Goncalves <[email protected]>
  • Loading branch information
oesteban and mgxd authored Aug 16, 2023
1 parent 3c024ea commit 779c239
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions sdcflows/interfaces/bspline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 779c239

Please sign in to comment.