Skip to content

Commit

Permalink
RF: Rename zooms_min to target_zooms for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Dec 6, 2022
1 parent 82cb55f commit db9314f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sdcflows/interfaces/bspline.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,17 +156,17 @@ def _run_interface(self, runtime):
if need_resize:
from sdcflows.utils.tools import resample_to_zooms

zooms_min = np.maximum(zooms, self.inputs.zooms_min)
target_zooms = np.maximum(zooms, self.inputs.zooms_min)

LOGGER.info(
"Resampling image with resolution exceeding 'zooms_min' "
f"({'x'.join(str(s) for s in zooms)} → "
f"{'x'.join(str(s) for s in zooms_min)})."
f"{'x'.join(str(s) for s in target_zooms)})."
)
fmapnii = resample_to_zooms(fmapnii, zooms_min)
fmapnii = resample_to_zooms(fmapnii, target_zooms)

if masknii is not None:
masknii = resample_to_zooms(masknii, zooms_min)
masknii = resample_to_zooms(masknii, target_zooms)

data = fmapnii.get_fdata(dtype="float32")

Expand Down

0 comments on commit db9314f

Please sign in to comment.