Add Haines and Petersburg Boroughs to County enum#8052
Merged
MaxGhenis merged 1 commit intoPolicyEngine:mainfrom Apr 17, 2026
Merged
Add Haines and Petersburg Boroughs to County enum#8052MaxGhenis merged 1 commit intoPolicyEngine:mainfrom
MaxGhenis merged 1 commit intoPolicyEngine:mainfrom
Conversation
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 Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
HAINES_BOROUGH_AK(FIPS 02100) andPETERSBURG_BOROUGH_AK(FIPS 02195) to theCountyenum.These boroughs were already referenced in the
AK_SOUTHEASTlist insnap_utility_region.pyper Alaska FSP-77, but without corresponding enum entries, households in Haines or Petersburg Borough fell through to the defaultAK_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 toAK_SE.changelog.d/: Add fixed-category fragment.Test plan
AK_SEruff format --checkcleanCloses #7744