Fix squigglepy

Corrects the "ValueError: You cannot nest discrete distributions within mixture distributions"

Runs in 4.6s on my laptop (M2 chip)
This commit is contained in:
Peter Wildeford 2023-06-09 22:00:20 +01:00 committed by GitHub
parent 3dac5f35cd
commit 05566faf75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,8 +5,8 @@ p_a = 0.8
p_b = 0.5
p_c = p_a * p_b
dist_0 = sq.discrete({0: 1})
dist_1 = sq.discrete({1: 1})
dist_0 = 0
dist_1 = 1
dist_some = sq.to(1, 3)
dist_many = sq.to(2, 10)