Skip to content

Add UK local candidate runner - #133

Merged
MaxGhenis merged 1 commit into
mainfrom
codex/uk-local-candidate-runner-20260619
Jun 19, 2026
Merged

Add UK local candidate runner#133
MaxGhenis merged 1 commit into
mainfrom
codex/uk-local-candidate-runner-20260619

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a Populace-owned UK local candidate runner for explicit area/target tables, country-specific metric generation, stacked solving, and longwise local geography export
  • add optional populace-build[uk] engine extra while keeping PolicyEngine-UK imports lazy and avoiding policyengine_uk_data
  • extend local support diagnostics to include zero-support areas, cloned source-household support, and effective sample size

Review fixes

  • validates PolicyEngine simulation household order before reindexing metrics to the sorted household frame
  • adds regression coverage for reversed simulation household order
  • adds regression coverage for zero-support areas and cloned source-household support

Verification

  • uv run --frozen --package populace-build --group dev python -m pytest packages/populace-build/tests/test_uk_local_runner.py packages/populace-build/tests/test_uk_local_geography.py packages/populace-build/tests/test_uk_local_targets.py packages/populace-build/tests/test_uk_local_solver.py -q
  • uv run --frozen --all-packages --group dev python -m pytest -q
  • uv run --frozen ruff check .
  • env -u UV_FROZEN uv lock --check
  • git diff --check

Notes

This is the reusable candidate-build path for the future UK variant="local"; the real PolicyEngine-UK H5 integration/pilot artifact build remains the next production validation step.

@MaxGhenis
MaxGhenis merged commit e010ff3 into main Jun 19, 2026
4 checks passed
@MaxGhenis
MaxGhenis deleted the codex/uk-local-candidate-runner-20260619 branch June 19, 2026 14:59
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.

1 participant