Skip to content

Commit 6925794

Browse files
Compatibility with nilearn 0.12.1 (#129)
1 parent 6358df1 commit 6925794

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/fmripost_aroma/utils/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import numpy as np
1010
import pandas as pd
1111
from nilearn import masking
12-
from nilearn._utils import load_niimg
1312

1413
# Define criteria needed for classification (thresholds and
1514
# hyperplane-parameters)
@@ -201,7 +200,7 @@ def denoising(in_file, out_dir, mixing, den_type, den_idx):
201200
motion_components = mixing[:, den_idx]
202201

203202
# Create a fake mask to make it easier to reshape the full data to 2D
204-
img = load_niimg(in_file)
203+
img = nb.load(in_file)
205204
full_mask = nb.Nifti1Image(np.ones(img.shape[:3], int), img.affine)
206205
data = masking.apply_mask(img, full_mask) # T x S
207206

0 commit comments

Comments
 (0)