Skip to content

Add SPM geographic adjustment input#8246

Merged
MaxGhenis merged 1 commit intomainfrom
codex/spm-geoadj-input
May 7, 2026
Merged

Add SPM geographic adjustment input#8246
MaxGhenis merged 1 commit intomainfrom
codex/spm-geoadj-input

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

Summary

  • Add an SPM unit geographic adjustment input variable.
  • Calculate SPM thresholds from current composition, tenure, and geographic adjustment from 2015 onward.
  • Preserve backward compatibility by inferring geographic adjustment from prior-year stored thresholds when no direct input is supplied.

Tests

  • uv run ruff check policyengine_us/variables/household/income/spm_unit/spm_unit_geographic_adjustment.py policyengine_us/variables/household/income/spm_unit/spm_unit_spm_threshold.py policyengine_us/tests/policy/baseline/household/income/spm_unit/test_spm_unit_spm_threshold.py
  • uv run pytest policyengine_us/tests/policy/baseline/household/income/spm_unit/test_spm_unit_spm_threshold.py

@codecov
Copy link
Copy Markdown

codecov Bot commented May 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (623a65c) to head (1612f6f).
⚠️ Report is 138 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##              main     #8246    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           12         2    -10     
  Lines          173        52   -121     
  Branches         4         1     -3     
==========================================
- Hits           173        52   -121     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@MaxGhenis MaxGhenis merged commit 0f7b48c into main May 7, 2026
25 checks passed
@MaxGhenis MaxGhenis deleted the codex/spm-geoadj-input branch May 7, 2026 20:22
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