File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 6
6
from __future__ import annotations
7
7
from collections .abc import Iterable
8
8
from typing import TYPE_CHECKING , Optional
9
+ import warnings
9
10
import numpy as np
10
11
from scipy import stats
11
12
from scipy .stats import rankdata , wilcoxon
@@ -117,11 +118,11 @@ def pool_rdm(rdms, method: str = 'cosine'):
117
118
rdm_vec = np .array ([_nan_rank_data (v ) for v in rdm_vec ])
118
119
rdm_vec = _nan_mean (rdm_vec )
119
120
elif method in ('kendall' , 'tau-b' ):
120
- raise Warning ('Noise ceiling for tau based on averaged ranks!' )
121
+ warnings . warn ('Noise ceiling for tau based on averaged ranks!' )
121
122
rdm_vec = np .array ([_nan_rank_data (v ) for v in rdm_vec ])
122
123
rdm_vec = _nan_mean (rdm_vec )
123
124
elif method == 'tau-a' :
124
- raise Warning ('Noise ceiling for tau based on averaged ranks!' )
125
+ warnings . warn ('Noise ceiling for tau based on averaged ranks!' )
125
126
rdm_vec = np .array ([_nan_rank_data (v ) for v in rdm_vec ])
126
127
rdm_vec = _nan_mean (rdm_vec )
127
128
else :
You can’t perform that action at this time.
0 commit comments