Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
dchung0741 committed Oct 25, 2024
1 parent aaa27fb commit 4a55e7b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/core/tests/core/sampling/test_create_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ def test_sample_from_probibility_distribution() -> None:
prob = np.array([p1, norm - p1])
cnts = sample_from_probibility_distribution(1000, prob)
assert sum(list(cnts.values())) == 1000
with pytest.raises(AssertionError, match="Probabilty does not sum to 1.0"):
rng = np.random.default_rng()
rng.multinomial(1000, prob)

norm = 1.001
p1 = 0.4
Expand Down

0 comments on commit 4a55e7b

Please sign in to comment.