From 6ddf5ca5f726bf7d12ac542cdf25c90f3901f907 Mon Sep 17 00:00:00 2001 From: Nikhil Woodruff Date: Tue, 17 Dec 2024 10:54:47 +0000 Subject: [PATCH] Use shorter variable --- .../outputs/macro/single/gov/local_areas/local_authorities.py | 2 +- .../single/gov/local_areas/parliamentary_constituencies.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/policyengine/outputs/macro/single/gov/local_areas/local_authorities.py b/policyengine/outputs/macro/single/gov/local_areas/local_authorities.py index 9cf57f5..009f350 100644 --- a/policyengine/outputs/macro/single/gov/local_areas/local_authorities.py +++ b/policyengine/outputs/macro/single/gov/local_areas/local_authorities.py @@ -64,7 +64,7 @@ def local_authorities( sim.get_holder("benunit_weight").delete_arrays( sim.default_calculation_period ) - calculation_result = metric(simulation.selected_sim) + calculation_result = metric(sim) code = constituency_names.code.iloc[constituency_id] result[constituency_names.set_index("code").loc[code]["name"]] = ( calculation_result diff --git a/policyengine/outputs/macro/single/gov/local_areas/parliamentary_constituencies.py b/policyengine/outputs/macro/single/gov/local_areas/parliamentary_constituencies.py index 6342359..44e2ff8 100644 --- a/policyengine/outputs/macro/single/gov/local_areas/parliamentary_constituencies.py +++ b/policyengine/outputs/macro/single/gov/local_areas/parliamentary_constituencies.py @@ -64,7 +64,7 @@ def parliamentary_constituencies( sim.get_holder("benunit_weight").delete_arrays( sim.default_calculation_period ) - calculation_result = metric(simulation.selected_sim) + calculation_result = metric(sim) code = constituency_names.code.iloc[constituency_id] result[constituency_names.set_index("code").loc[code]["name"]] = ( calculation_result