-
Notifications
You must be signed in to change notification settings - Fork 201
feat: Add breakdown_labels metadata for range() dimensions #7126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7126 +/- ##
============================================
- Coverage 100.00% 82.12% -17.88%
============================================
Files 10 3649 +3639
Lines 144 52526 +52382
Branches 0 263 +263
============================================
+ Hits 144 43135 +42991
- Misses 0 9359 +9359
- Partials 0 32 +32
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:
|
hua7450
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PavelMakarchuk what do you think about this breakdown_labels ?
Sorry, perhaps I should've provided some context. The PR that I closed that had one type of fix for each missing label case also had this. I ran it by Pavel as a solution to the fact that we can't directly label |
Add breakdown_labels to params with range() dimensions to provide semantic labels for numeric breakdown dimensions. This enables human-readable labels like "Household size 3" instead of raw "3". Updated params: - SNAP max_allotment.main: Household size - SNAP income deductions standard: Household size - NC SCCA childcare market rates: Age group - IRS state sales tax table: Family size, Income bracket - ACA state rating area cost: Rating area - IL AABD utility params (7 files): Household size - VT renter credit params (3 files): Household size - DC LIHEAP params (2 files): Income level, Household size - OR WFHDC credit: FPL bracket - DC TANF standard payment: Household size - MN MFIP transitional standard: Assistance unit size - UT FEP params (2 files): Household size - MO TANF standard of need: Assistance unit size - AR TEA payment standard: Assistance unit size - RI Works payment standard: Household size 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Adds breakdown_labels metadata to 63 parameter files with range() dimensions, enabling semantic labels like "Household size 3" instead of raw "3". Includes federal (HUD, IRS, SNAP), contrib, local, and state parameters. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
b77dbec to
5381fe0
Compare
Summary
Requires PolicyEngine/policyengine.py#209. Add
breakdown_labelsmetadata to parameters withrange()dimensions to provide semantic labels for numeric breakdown dimensions.This enables human-readable labels like "Household size 3" instead of raw "3".
Updated parameters (25 files):
Test plan
🤖 Generated with Claude Code