Skip to content

Refresh UK target source vintages#390

Open
MaxGhenis wants to merge 2 commits intomainfrom
codex/refresh-uk-target-vintages
Open

Refresh UK target source vintages#390
MaxGhenis wants to merge 2 commits intomainfrom
codex/refresh-uk-target-vintages

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

@MaxGhenis MaxGhenis commented May 4, 2026

Summary

  • refresh HMRC SPI target URLs and base year to tax year 2023-24
  • switch ONS demographics to the 2024-based projection workbook and tolerate the new zip/year-column/Age layouts
  • switch ONS household targets to the 2025 families and households workbook

Closes #388.
Closes #389.
Follow-up: #393 covers regenerating future-year SPI income projection artifacts from the 2023-24 base.

Tests

  • pytest policyengine_uk_data/tests/test_target_registry.py::test_ons_uk_population_exists policyengine_uk_data/tests/test_target_registry.py::test_hmrc_spi_targets_exist policyengine_uk_data/tests/test_property_income_targets.py -q
  • pytest policyengine_uk_data/tests/test_ons_demographics_targets.py policyengine_uk_data/tests/test_target_registry.py::test_ons_uk_population_exists -q

@MaxGhenis MaxGhenis marked this pull request as ready for review May 4, 2026 16:48
@vahid-ahmadi
Copy link
Copy Markdown
Collaborator

Approve with two small asks:

  1. Confirm (in PR or commit) that POPULATION_TARGET = 69.5 was re-verified against the 2024-based workbook.
  2. Add a single-line RuntimeError if the expected workbook isn't found in the zip, so the next vintage refresh fails loud instead of cryptically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refresh ONS population and household targets to 2026 releases Refresh HMRC SPI targets to tax year 2023-24

2 participants