Skip to content

Commit e16634d

Browse files
authored
Merge pull request #79 from VinceBaz/master
[FIX] np.nanmean in func consensus when no boot
2 parents 519ffc7 + d2d40b4 commit e16634d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netneurotools/networks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def func_consensus(data, n_boot=1000, ci=95, seed=None):
6464
else:
6565
corrs = [np.corrcoef(data[..., sub]) for sub in
6666
range(data.shape[-1])]
67-
return np.mean(corrs, axis=0)
67+
return np.nanmean(corrs, axis=0)
6868

6969
if isinstance(data, list):
7070
collapsed_data = np.hstack(data)

0 commit comments

Comments
 (0)