File tree 3 files changed +13
-4
lines changed
3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -232,6 +232,8 @@ jobs:
232
232
- name : Download artifacts
233
233
uses : actions/download-artifact@v2
234
234
- name : Upload to CodeCov
235
- uses : codecov/codecov-action@v2
235
+ uses : codecov/codecov-action@v3
236
236
with :
237
237
fail_ci_if_error : true
238
+ env :
239
+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change 9
9
import pandas as pd
10
10
import pymare
11
11
from joblib import Memory
12
- from nilearn ._utils .niimg_conversions import _check_same_fov
12
+
13
+ try :
14
+ # nilearn>0.10.3
15
+ from nilearn ._utils .niimg_conversions import check_same_fov
16
+ except ImportError :
17
+ # nilearn < 0.10.3
18
+ from nilearn ._utils .niimg_conversions import _check_same_fov as check_same_fov
19
+
13
20
from nilearn .image import concat_imgs , resample_to_img
14
21
from nilearn .input_data import NiftiMasker
15
22
from nilearn .mass_univariate import permuted_ols
@@ -105,7 +112,7 @@ def _preprocess_input(self, dataset):
105
112
imgs = [
106
113
(
107
114
nib .load (img )
108
- if _check_same_fov (nib .load (img ), reference_masker = mask_img )
115
+ if check_same_fov (nib .load (img ), reference_masker = mask_img )
109
116
else resample_to_img (nib .load (img ), mask_img , ** self ._resample_kwargs )
110
117
)
111
118
for img in self .inputs_ [name ]
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ install_requires =
44
44
joblib>=1.3.0 # parallelization
45
45
matplotlib>=3.5.2 # this is for nilearn, which doesn't include it in its reqs
46
46
nibabel>=3.2.0 # I/O of niftis
47
- nilearn>=0.10.1,< 0.10.3 # until https://github.com/nilearn/nilearn/pull/4256 is resolved
47
+ nilearn>=0.10.1,!= 0.10.3 # https://github.com/nilearn/nilearn/pull/4256 0.10.3 is broken
48
48
numba>=0.57.0 # used by sparse
49
49
numpy>=1.22 # numba needs NumPy 1.22 or greater
50
50
pandas>=2.0.0
You can’t perform that action at this time.
0 commit comments