From 8ce348093319237752f030f97f4fe7efc6451d65 Mon Sep 17 00:00:00 2001 From: Nikhil Woodruff Date: Tue, 24 Sep 2024 18:59:57 +0100 Subject: [PATCH] Fix syntax bug --- policyengine_core/simulations/simulation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/policyengine_core/simulations/simulation.py b/policyengine_core/simulations/simulation.py index c9bd0e32..71090cbf 100644 --- a/policyengine_core/simulations/simulation.py +++ b/policyengine_core/simulations/simulation.py @@ -1487,8 +1487,8 @@ def subsample( Simulation: The quantized simulation. """ # Set default key if not provided - if key is None: - key = self.dataset.name + if seed is None: + seed = self.dataset.name # Set default time period if not provided if time_period is None: