Skip to content

Centralize long-run calibration weight access#1035

Merged
MaxGhenis merged 1 commit into
mainfrom
codex/centralize-long-run-weight-access
May 20, 2026
Merged

Centralize long-run calibration weight access#1035
MaxGhenis merged 1 commit into
mainfrom
codex/centralize-long-run-weight-access

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

Summary

  • centralizes direct MicroSeries .weights access behind household_calibration_weights() for long-run calibration decision vectors
  • switches long-run baseline/debug totals to PolicyEngine weighted operations (MicroSeries.sum())
  • adds regression coverage preventing new direct .weights access in the long-run package

Tests

  • ruff check policyengine_us_data/datasets/cps/long_term/projection_utils.py policyengine_us_data/datasets/cps/long_term/run_household_projection.py policyengine_us_data/datasets/cps/long_term/assess_publishable_horizon.py policyengine_us_data/datasets/cps/long_term/evaluate_support_augmentation.py policyengine_us_data/datasets/cps/long_term/check_calibrated_estimates_interactive.py tests/unit/test_long_term_calibration_contract.py
  • .venv/bin/python -m pytest tests/unit/test_long_term_calibration_contract.py -q

Subagent review found no actionable issues.

@MaxGhenis MaxGhenis force-pushed the codex/centralize-long-run-weight-access branch 5 times, most recently from ae3d028 to 53175b5 Compare May 19, 2026 22:11
@MaxGhenis MaxGhenis force-pushed the codex/centralize-long-run-weight-access branch from 53175b5 to 5f64dec Compare May 20, 2026 03:24
@MaxGhenis MaxGhenis merged commit 35321f9 into main May 20, 2026
13 checks passed
@MaxGhenis MaxGhenis deleted the codex/centralize-long-run-weight-access branch May 20, 2026 12:58
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