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/618.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Document and test the 2022–2036 SPM forecast horizon: 2036 joins the supported household years and 2037 becomes the out-of-horizon example.
2 changes: 1 addition & 1 deletion docs/households.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ set of keys is:
| `as_of` | Optional information-date cutoff accepted by the pinned artifact. |

Forecast paths, provider objects and fallback policies are not settings. The
canonical artifact covers 2022–2035. Its receipt distinguishes published
canonical artifact covers 2022–2036. Its receipt distinguishes published
national inputs from forecast components and research geography; an unsupported
year fails instead of being extrapolated by the wrapper. Scenario forecasts
are conditional research estimates, not agency forecasts or uncertainty bounds.
Expand Down
2 changes: 1 addition & 1 deletion docs/microsim.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ The same `spm=` selection is accepted by
`pe.us.managed_microsimulation`; its returned country simulation exposes
`spm_config` and `spm_provenance()` too. See the [household SPM
contract](households.md#spm-geography-and-measurement-selection) for exact keys,
the 2022–2035 artifact horizon and explicit geography errors. No provider or
the 2022–2036 artifact horizon and explicit geography errors. No provider or
forecast-file path can replace the bundle's pinned artifact.

For a small local development dataset, explicitly opt out of managed data
Expand Down
4 changes: 2 additions & 2 deletions tests/test_spm_household.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def household_inputs(**overrides):
return values


@pytest.mark.parametrize("year", [2024, 2026, 2035])
@pytest.mark.parametrize("year", [2024, 2026, 2035, 2036])
def test_explicit_national_amounts_and_component_provenance(year, tmp_path):
result = pe.us.calculate_household(
**household_inputs(year=year),
Expand Down Expand Up @@ -390,7 +390,7 @@ def test_axes_reforms_and_scenarios_keep_detached_receipts():
assert selection == {"geography_kind": "national", "scenario": "ce_trend"}


@pytest.mark.parametrize("year", [2021, 2036])
@pytest.mark.parametrize("year", [2021, 2037])
def test_year_outside_canonical_horizon_is_not_silently_extrapolated(year):
with pytest.raises(ValueError, match="no entry|unavailable|not available"):
pe.us.calculate_household(
Expand Down
Loading