feat: Add breakdown_labels metadata for range() dimensions#7126
feat: Add breakdown_labels metadata for range() dimensions#7126
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7126 +/- ##
==========================================
- Coverage 76.71% 70.90% -5.82%
==========================================
Files 3665 3666 +1
Lines 52702 52712 +10
Branches 263 263
==========================================
- Hits 40432 37377 -3055
- Misses 12244 15335 +3091
+ Partials 26 0 -26
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.
@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 |
b77dbec to
5381fe0
Compare
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>
5381fe0 to
f321027
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