From af0e4a4b7d5c47c30acb64e0613f10bd65c3c77d Mon Sep 17 00:00:00 2001 From: nikhilwoodruff <35577657+nikhilwoodruff@users.noreply.github.com> Date: Sat, 16 Dec 2023 15:36:21 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=206c263?= =?UTF-8?q?0ccec1bf6fa3910896cd25ad7b395974beb=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _downloads/621e2c7711e8623173875c33222eddb6/changelog.yaml | 5 +++++ _modules/policyengine_core/simulations/simulation.html | 2 ++ 2 files changed, 7 insertions(+) diff --git a/_downloads/621e2c7711e8623173875c33222eddb6/changelog.yaml b/_downloads/621e2c7711e8623173875c33222eddb6/changelog.yaml index 07da3e30..96cc7600 100644 --- a/_downloads/621e2c7711e8623173875c33222eddb6/changelog.yaml +++ b/_downloads/621e2c7711e8623173875c33222eddb6/changelog.yaml @@ -430,3 +430,8 @@ - Bug causing random behaviour differences between situations with and without axes. date: 2023-12-14 11:38:52 +- bump: patch + changes: + fixed: + - Random seed fixed for each simulation. + date: 2023-12-16 15:34:37 diff --git a/_modules/policyengine_core/simulations/simulation.html b/_modules/policyengine_core/simulations/simulation.html index 56f158f4..c834c316 100644 --- a/_modules/policyengine_core/simulations/simulation.html +++ b/_modules/policyengine_core/simulations/simulation.html @@ -349,6 +349,8 @@

Source code for policyengine_core.simulations.simulation

self.branches: Dict[str, Simulation] = {} self.has_axes = False + np.random.seed(0) + if situation is not None: if dataset is not None: raise ValueError(