Skip to content

Commit 0f91a0c

Browse files
authored
Merge pull request #371 from HippocampusGirl/maint/1.3.x
MAINT: Make call to scipy.stats.mode compatible with scipy 1.11.0
2 parents 08152b2 + 7992ecf commit 0f91a0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdcflows/workflows/gre.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def _demean(in_file, in_mask=None, usemode=True):
212212

213213
if usemode:
214214
from scipy.stats import mode
215-
data[msk] -= mode(data[msk], axis=None)[0][0]
215+
data[msk] -= mode(data[msk], axis=None).mode.item()
216216
else:
217217
data[msk] -= np.median(data[msk], axis=None)
218218

0 commit comments

Comments
 (0)