Skip to content

Commit

Permalink
Merge pull request #1457 from brian-team/integer_test_fix_for_cython
Browse files Browse the repository at this point in the history
Small changes for two tests to use floats
  • Loading branch information
mstimberg committed Feb 27, 2023
2 parents 6400f0b + b489add commit 738f258
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions brian2/tests/test_stateupdaters.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def test_multiple_noise_variables_extended():
net = Network(G, mon)
# We run it deterministically, but still we'd detect major errors (e.g.
# non-stochastic terms that are added twice, see #330
net.run(10 * ms, namespace={"noise_factor": 0})
net.run(10 * ms, namespace={"noise_factor": 0.0})
assert_allclose(
mon.x[:],
no_noise_x,
Expand Down Expand Up @@ -267,7 +267,7 @@ def test_multiplicative_noise():


def test_pure_noise_deterministic(fake_randn_randn_fixture):
sigma = 3
sigma = 3.0
eqs = Equations("dx/dt = sigma*xi/sqrt(ms) : 1")
dt = 0.1 * ms
for method in ["euler", "heun", "milstein"]:
Expand Down

0 comments on commit 738f258

Please sign in to comment.