Skip to content

Commit b1f08a6

Browse files
committed
RF: enforce integer for np.random.normal size
Numpy is more aggressive about insisting on integers for arguments like sizes of arrays (as here).
1 parent 3ada5de commit b1f08a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/labs/plots/enn_demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
from nipy.algorithms.statistics.empirical_pvalue import NormalEmpiricalNull
66

7-
x = np.c_[np.random.normal(size=1e4),
8-
np.random.normal(scale=4, size=1e4)]
7+
x = np.c_[np.random.normal(size=10000),
8+
np.random.normal(scale=4, size=10000)]
99

1010
enn = NormalEmpiricalNull(x)
1111
enn.threshold(verbose=True)

0 commit comments

Comments
 (0)