Skip to content

Add Haines and Petersburg Boroughs to County enum#8052

Merged
MaxGhenis merged 1 commit intoPolicyEngine:mainfrom
MaxGhenis:fix/7744-ak-haines-petersburg-boroughs
Apr 17, 2026
Merged

Add Haines and Petersburg Boroughs to County enum#8052
MaxGhenis merged 1 commit intoPolicyEngine:mainfrom
MaxGhenis:fix/7744-ak-haines-petersburg-boroughs

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

Summary

Adds HAINES_BOROUGH_AK (FIPS 02100) and PETERSBURG_BOROUGH_AK (FIPS 02195) to the County enum.

These boroughs were already referenced in the AK_SOUTHEAST list in snap_utility_region.py per Alaska FSP-77, but without corresponding enum entries, households in Haines or Petersburg Borough fell through to the default AK_C (Central) region and received incorrect SNAP utility allowances.

Changes

  • policyengine_us/variables/household/demographic/geographic/county/county_enum.py: Add two enum entries, keeping alphabetical order within the Alaska section.
  • policyengine_us/tests/policy/baseline/gov/usda/snap/snap_utility_region.yaml: Add test cases covering both boroughs mapping to AK_SE.
  • changelog.d/: Add fixed-category fragment.

Test plan

  • New YAML tests for Haines and Petersburg borough -> AK_SE
  • Existing AK SNAP utility region tests continue to pass (13/13)
  • Full SNAP suite passes (290/290)
  • ruff format --check clean

Closes #7744

Add HAINES_BOROUGH_AK (FIPS 02100) and PETERSBURG_BOROUGH_AK
(FIPS 02195) to the County enum. These are already referenced by
the AK_SOUTHEAST list in snap_utility_region.py per Alaska FSP-77,
but without enum entries, households in those boroughs fell through
to the default AK_C (Central) region and received incorrect SNAP
utility allowances. Adds YAML tests covering both boroughs.

Closes PolicyEngine#7744
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (61ae9f9) to head (0c9fcff).
⚠️ Report is 217 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #8052      +/-   ##
===========================================
+ Coverage   91.75%   100.00%   +8.24%     
===========================================
  Files          42         1      -41     
  Lines         837      3177    +2340     
  Branches       22         0      -22     
===========================================
+ Hits          768      3177    +2409     
+ Misses         67         0      -67     
+ Partials        2         0       -2     
Flag Coverage Δ
unittests 100.00% <100.00%> (+8.24%) ⬆️

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 8f1d187 into PolicyEngine:main Apr 17, 2026
9 checks passed
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.

Add missing Alaska boroughs to county_enum.py (Haines, Petersburg)

1 participant