Skip to content

Commit

Permalink
Seed sampling in TestNutsCheckTrace.test_linalg
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoV94 committed May 24, 2022
1 parent 2b987d8 commit c0e4f08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymc/tests/test_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ def test_linalg(self, caplog):
b = at.slinalg.solve(floatX(np.eye(2)), a, check_finite=False)
Normal("c", mu=b, size=2, initval=floatX(np.r_[0.0, 0.0]))
caplog.clear()
trace = sample(20, tune=5, chains=2, return_inferencedata=False)
trace = sample(20, tune=5, chains=2, return_inferencedata=False, random_seed=526)
warns = [msg.msg for msg in caplog.records]
assert np.any(trace["diverging"])
assert (
Expand Down

0 comments on commit c0e4f08

Please sign in to comment.