From 05566faf75a67c808772334a6b622b9c3d9b898f Mon Sep 17 00:00:00 2001 From: Peter Wildeford Date: Fri, 9 Jun 2023 22:00:20 +0100 Subject: [PATCH] Fix squigglepy Corrects the "ValueError: You cannot nest discrete distributions within mixture distributions" Runs in 4.6s on my laptop (M2 chip) --- squigglepy/samples.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/squigglepy/samples.py b/squigglepy/samples.py index 1d5132b3..8139d808 100644 --- a/squigglepy/samples.py +++ b/squigglepy/samples.py @@ -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)