diff --git a/changelog.d/us-2036-economy-year.added.md b/changelog.d/us-2036-economy-year.added.md new file mode 100644 index 000000000..10b719aba --- /dev/null +++ b/changelog.d/us-2036-economy-year.added.md @@ -0,0 +1 @@ +Offer 2036 as a US economy and household year, for the PolicyEngine bundle whose SPM forecast covers 2022–2036. diff --git a/docs/canonical-spm.md b/docs/canonical-spm.md index 0f4c5c958..3409f4180 100644 --- a/docs/canonical-spm.md +++ b/docs/canonical-spm.md @@ -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 diff --git a/policyengine_api/country.py b/policyengine_api/country.py index 1c090ceda..af34c290a 100644 --- a/policyengine_api/country.py +++ b/policyengine_api/country.py @@ -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"}, diff --git a/policyengine_api/data/v2/catalog/extraction.py b/policyengine_api/data/v2/catalog/extraction.py index 9aa18b61c..f9938fdb6 100644 --- a/policyengine_api/data/v2/catalog/extraction.py +++ b/policyengine_api/data/v2/catalog/extraction.py @@ -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"}) diff --git a/tests/unit/test_country_spm.py b/tests/unit/test_country_spm.py index ebe9bde0a..1fa4ee49d 100644 --- a/tests/unit/test_country_spm.py +++ b/tests/unit/test_country_spm.py @@ -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", ), }