Skip to content

Commit 735949f

Browse files
committed
Increase number of neurons in test to reduce probability of unwanted corner case.
1 parent 1cbad01 commit 735949f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

testsuite/pytests/test_regression_issue-3156.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,11 @@ def test_params_random_numerator(op, rhs):
6868
def test_random_numer_and_denom():
6969
"""
7070
For random parameters in numerator and denominator, we make the denominator uniform
71-
on the set {-1, +1}. We expect then that there must be at least one positive and at
72-
least one negative result.
71+
on the set {-1, +1}. For 50 neurons we then have at least one positive and at least
72+
one negative result with p = 2 * 2^-50 ≈ 2e-15.
7373
"""
74-
num_neurons = 10
74+
75+
num_neurons = 50
7576
try:
7677
n = nest.Create(
7778
"iaf_psc_alpha", num_neurons, {"V_m": nest.random.uniform(1, 2) / (1.0 - 2.0 * nest.random.uniform_int(2))}

0 commit comments

Comments
 (0)