Skip to content

Add default rerandomized takeup target handler#258

Merged
MaxGhenis merged 1 commit into
mainfrom
codex/rerandomized-takeup-handler-20260607
Jun 7, 2026
Merged

Add default rerandomized takeup target handler#258
MaxGhenis merged 1 commit into
mainfrom
codex/rerandomized-takeup-handler-20260607

Conversation

@MaxGhenis

Copy link
Copy Markdown
Contributor

Summary

  • add a shared deterministic PolicyEngine-US takeup generation helper used by both the pipeline and target compiler
  • make rerandomize_takeup a default fail-closed simulation modifier handler
  • keep unsupported existing-only takeup inputs skipped instead of silently compiling stale/missing columns

Validation

  • env -u UV_FROZEN uv run --python 3.13 --extra dev --extra policyengine ruff check src/microplex_us/policyengine/takeup.py src/microplex_us/policyengine/us.py src/microplex_us/pipelines/us.py tests/policyengine/test_us.py
  • git diff --check
  • env -u UV_FROZEN uv run --python 3.13 --extra dev --extra policyengine pytest tests/policyengine/test_us.py tests/test_target_adapters.py -q
  • env -u UV_FROZEN uv run --python 3.13 --extra dev --extra policyengine pytest tests/pipelines/test_us.py::TestUSMicroplexPipeline::test_build_policyengine_entity_tables_adds_ecps_stochastic_takeup_inputs tests/pipelines/test_us.py::TestUSMicroplexPipeline::test_attach_policyengine_pregnancy_inputs_assigns_eligible_females tests/pipelines/test_us.py::TestUSMicroplexPipeline::test_attach_policyengine_pregnancy_inputs_preserves_explicit_column tests/pipelines/test_us.py::TestUSMicroplexPipeline::test_build_policyengine_entity_tables_adds_wic_takeup_inputs tests/pipelines/test_us.py::TestUSMicroplexPipeline::test_build_policyengine_entity_tables_preserves_explicit_stochastic_takeup_inputs tests/pipelines/test_us.py::TestUSMicroplexPipeline::test_build_policyengine_entity_tables_uses_eitc_children_for_eitc_takeup -q

@MaxGhenis MaxGhenis merged commit 1ae8f9a into main Jun 7, 2026
5 checks passed
@MaxGhenis MaxGhenis deleted the codex/rerandomized-takeup-handler-20260607 branch June 7, 2026 16:09
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