Skip to content

Add remaining eCPS take-up inputs#161

Merged
MaxGhenis merged 1 commit into
mainfrom
codex/takeup-parity-rest-20260601
Jun 1, 2026
Merged

Add remaining eCPS take-up inputs#161
MaxGhenis merged 1 commit into
mainfrom
codex/takeup-parity-rest-20260601

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

@MaxGhenis MaxGhenis commented Jun 1, 2026

Summary

  • add eCPS-style deterministic take-up inputs for Medicaid, TANF, DC PTC, Head Start, Early Head Start, EITC, and voluntary filing
  • preserve explicit source take-up flags when present, including tax-unit flags carried on person rows
  • prefer imputed eitc_children for EITC take-up rates when available, falling back to reconstructed tax-unit dependent counts
  • load latest eCPS voluntary-filing rates as the nested child/wage/age table rather than the older scalar fallback

Notes

This intentionally does not copy eCPS WIC or SSI behavior. WIC needs coherent category/risk source modeling, and SSI already has MP's reported/calibrated take-up path.

Validation

  • uv run ruff check src/microplex_us/pipelines/us.py tests/pipelines/test_us.py
  • uv run ruff format --check src/microplex_us/pipelines/us.py tests/pipelines/test_us.py
  • uv run --extra dev python -m pytest tests/pipelines/test_us.py -q -k 'adds_ecps_stochastic_takeup_inputs or preserves_explicit_stochastic_takeup_inputs or uses_eitc_children_for_eitc_takeup or adds_deterministic_snap_takeup or adds_deterministic_aca_takeup'
  • PYTHONPATH=/Users/maxghenis/.codex-worktrees/policyengine-us-data-upstream-main-20260601 uv run --extra policyengine python - <<'PY' ... verified the 2024 voluntary-filing loader returns the nested no_children/with_children table shape

Full local test_us.py was not run before opening because the machine is already running the active MP H5 build and several Claude pytest jobs; CI should cover the broader suite.

@MaxGhenis MaxGhenis force-pushed the codex/takeup-parity-rest-20260601 branch from da0aa22 to 0ac3e75 Compare June 1, 2026 23:31
@MaxGhenis MaxGhenis merged commit bf8f010 into main Jun 1, 2026
5 checks passed
@MaxGhenis MaxGhenis deleted the codex/takeup-parity-rest-20260601 branch June 1, 2026 23:32
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