Skip to content

Move disability benefit reported amount mapping to UK data#1656

Merged
MaxGhenis merged 3 commits intomainfrom
codex/pip-categories-data-inputs
May 1, 2026
Merged

Move disability benefit reported amount mapping to UK data#1656
MaxGhenis merged 3 commits intomainfrom
codex/pip-categories-data-inputs

Conversation

@MaxGhenis
Copy link
Copy Markdown
Collaborator

@MaxGhenis MaxGhenis commented Apr 30, 2026

Summary

  • Make PIP, DLA, and Attendance Allowance category variables direct model input leaves.
  • Remove pip_*_reported, dla_*_reported, and attendance_allowance_reported from the model and uprating docs.
  • Add tests that disability benefit categories default or can be set directly, and reported amount variables are no longer model inputs.

Tests

  • uv run ruff check policyengine_uk/variables/input/dla_sc_category.py policyengine_uk/variables/input/dla_m_category.py policyengine_uk/variables/input/pip_dl_category.py policyengine_uk/variables/input/pip_m_category.py policyengine_uk/variables/gov/dwp/aa_category.py policyengine_uk/tests/test_deterministic_variables.py
  • uv run pytest -q policyengine_uk/tests/code_health policyengine_uk/tests/test_deterministic_variables.py

@MaxGhenis MaxGhenis changed the title Move PIP reported amount mapping to UK data Move disability benefit reported amount mapping to UK data Apr 30, 2026
@MaxGhenis
Copy link
Copy Markdown
Collaborator Author

Opened the uk-data companion: PolicyEngine/policyengine-uk-data#383.

It maps reported PIP/DLA/Attendance Allowance amounts to category inputs in the data pipeline, keeps reported amounts only as internal FRS/imputation intermediates, strips them before saved datasets, and updates the public transfer dataset to emit PIP categories directly.

@MaxGhenis MaxGhenis merged commit d4a0a59 into main May 1, 2026
9 checks passed
@MaxGhenis MaxGhenis deleted the codex/pip-categories-data-inputs branch May 1, 2026 15: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