Skip to content

Commit

Permalink
Use _parsed_reform
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilwoodruff committed Dec 10, 2024
1 parent 79da485 commit 53424ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions policyengine/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ def _initialise_simulations(self):
)

if self.comparison:
if self.baseline_sim.reform is not None:
self.reform = (self.baseline_sim.reform, self.reform)
if self._parsed_baseline is not None:
self._parsed_reform = (self._parsed_baseline, self.reform)
self.reformed_sim = _simulation_type(
dataset=self.data if macro else None,
situation=self.data if not macro else None,
Expand All @@ -322,7 +322,7 @@ def _initialise_simulations(self):
self.reformed_sim,
_simulation_type,
self.options["region"],
reform=self.reform,
reform=self._parsed_reform,
)

if "subsample" in self.options:
Expand Down

0 comments on commit 53424ac

Please sign in to comment.