Skip to content

Commit 7a7a623

Browse files
mgxdeffigies
andauthored
Apply suggestions from code review
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent 02d617a commit 7a7a623

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fmriprep/workflows/bold/registration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ def _conditional_downsampling(in_file, in_mask, zoom_th=4.0):
737737
import nibabel as nb
738738
import nitransforms as nt
739739
import numpy as np
740-
from nitransforms.resampling import apply as transform
740+
from nitransforms.resampling import apply as applyxfm
741741
from scipy.ndimage.filters import gaussian_filter
742742

743743
img = nb.load(in_file)
@@ -760,13 +760,13 @@ def _conditional_downsampling(in_file, in_mask, zoom_th=4.0):
760760
identity = nt.Affine()
761761

762762
newref = nb.Nifti1Image(np.zeros(newshape, dtype=np.uint8), newaffine)
763-
transform(identity, img, reference=newref).to_filename(out_file)
763+
applyxfm(identity, img, reference=newref).to_filename(out_file)
764764

765765
mask = nb.load(in_mask)
766766
mask.set_data_dtype(float)
767767
mdata = gaussian_filter(mask.get_fdata(dtype=float), scaling)
768768
floatmask = nb.Nifti1Image(mdata, mask.affine, mask.header)
769-
newmask = transform(identity, floatmask, reference=newref)
769+
newmask = applyxfm(identity, floatmask, reference=newref)
770770
hdr = newmask.header.copy()
771771
hdr.set_data_dtype(np.uint8)
772772
newmaskdata = (newmask.get_fdata(dtype=float) > 0.5).astype(np.uint8)

0 commit comments

Comments
 (0)