Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/us-2036-economy-year.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Offer 2036 as a US economy and household year, for the PolicyEngine bundle whose SPM forecast covers 2022–2036.
2 changes: 1 addition & 1 deletion docs/canonical-spm.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ The `spm` object accepts only these fields:
Unknown fields and invalid selections are rejected. Only the household's
`county_fips` input identifies a local county. Computed county, state, first county
in state and congressional district do not identify an SPM area. The full
canonical artifact supplies 2022–2035 measurements; no consumer CPI extrapolation
canonical artifact supplies 2022–2036 measurements; no consumer CPI extrapolation
or congressional-district geographic factors are introduced.

`POST /us/calculate` and `/us/calculate-full` take settings beside the existing
Expand Down
1 change: 1 addition & 0 deletions policyengine_api/country.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ def build_microsimulation_options(self) -> dict:
# Add all 436 congressional districts (435 voting + DC)
region.extend(build_congressional_district_metadata())
time_period = [
{"name": 2036, "label": "2036"},
{"name": 2035, "label": "2035"},
{"name": 2034, "label": "2034"},
{"name": 2033, "label": "2033"},
Expand Down
2 changes: 1 addition & 1 deletion policyengine_api/data/v2/catalog/extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
)
CURRENT_LAW_IDS = {"us": 2, "uk": 1}
METADATA_TIME_PERIODS = {
"us": tuple(range(2035, 2021, -1)),
"us": tuple(range(2036, 2021, -1)),
"uk": tuple(range(2024, 2031)),
}
PLACEHOLDER_VERSIONS = frozenset({"", "0", "0.0", "0.0.0", "unknown"})
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/test_country_spm.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,9 +490,9 @@ def household(self, *, axes=False):
),
"year-after-forecast": MissingInputCase(
"SPM_YEAR_UNAVAILABLE",
"Forecast has no entry for 2036",
"Forecast has no entry for 2037",
geography_kind="national",
year="2036",
year="2037",
),
}

Expand Down
Loading