Skip to content

Commit

Permalink
Make correlated convolve test deterministic by using specific rng
Browse files Browse the repository at this point in the history
  • Loading branch information
rmjarvis committed Nov 7, 2023
1 parent e3cf6d1 commit ea0f82b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_deprecated.py
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ def test_photon_array_correlated():
check_dep(pa3.setCorrelated)
assert check_dep(pa3.isCorrelated)
assert check_dep(pa2.isCorrelated)
pa3.convolve(pa2)
pa3.convolve(pa2, rng=rng)
with assert_raises(AssertionError):
np.testing.assert_allclose(pa3.x, conv_x)
with assert_raises(AssertionError):
Expand Down

0 comments on commit ea0f82b

Please sign in to comment.