We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eeb5a81 commit c9c4478Copy full SHA for c9c4478
2 files changed
changelog_entry.yaml
@@ -0,0 +1,4 @@
1
+- bump: patch
2
+ changes:
3
+ fixed:
4
+ - Bug with the 2023 CPS.
policyengine_api/jobs/calculate_economy_simulation_job.py
@@ -637,6 +637,9 @@ def _create_simulation_us(
637
region_sim = Microsimulation(
638
dataset=filter_dataset,
639
reform=reform,
640
+ default_input_period=(
641
+ 2023 if "2023" in filter_dataset else None
642
+ ),
643
)
644
df = region_sim.to_input_dataframe()
645
state_code = region_sim.calculate(
@@ -653,6 +656,7 @@ def _create_simulation_us(
653
656
654
657
if dataset == "default" and region == "us":
655
658
sim_options["dataset"] = datasets["us"]["cps"]
659
+ sim_options["default_input_period"] = 2023
660
661
# Return completed simulation
662
return Microsimulation(**sim_options)
0 commit comments