Add UK raw-source and local-geography parity#156
Draft
MaxGhenis wants to merge 3 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR moves the UK replacement build closer to full Populace ownership by adding a raw-source parity contract and the long local-geography path needed to replace the legacy matrix workflow.
source_stages.json; Python now derivesUK_STAGE_NAMES,UK_DONORS, andUK_STRUCTURAL_SOURCE_STAGESfrom the manifest.ledger_consumer_facts, compileuk_national_calibration/uk_local_geographytarget profiles, then calibrate weights against household metric tables.(area_type, area_code, household_id, weight)rows rather than preserving the dense area-by-household matrix artifact.Validation
uv run ruff check .uv run --package populace-build --group dev python -m pytest packages/populace-build/tests/test_uk_source_manifest.py -quv run --package populace-build --group dev python -m pytest packages/populace-build/tests -qpython3 -m json.tool packages/populace-build/src/populace/build/uk/source_stages.json >/dev/nullgit diff --checkhttps://github.com/PolicyEngine/arch-data