Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Nilearn API _check_same_fov #873

Merged
merged 6 commits into from
Apr 10, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions nimare/meta/ibma.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import pandas as pd
import pymare
from joblib import Memory
from nilearn._utils.niimg_conversions import _check_same_fov
from nilearn._utils.niimg_conversions import check_same_fov
adelavega marked this conversation as resolved.
Show resolved Hide resolved
from nilearn.image import concat_imgs, resample_to_img
from nilearn.input_data import NiftiMasker
from nilearn.mass_univariate import permuted_ols
Expand Down Expand Up @@ -103,7 +103,7 @@ def _preprocess_input(self, dataset):
# Resampling will only occur if shape/affines are different
imgs = [
nib.load(img)
if _check_same_fov(nib.load(img), reference_masker=mask_img)
if check_same_fov(nib.load(img), reference_masker=mask_img)
else resample_to_img(nib.load(img), mask_img, **self._resample_kwargs)
for img in self.inputs_[name]
]
Expand Down
Loading