-
Notifications
You must be signed in to change notification settings - Fork 200
Texas state specific lifeline eligibility and payout #6607
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: master
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 @@
## master #6607 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 3 4 +1
Lines 39 70 +31
Branches 0 2 +2
=========================================
+ Hits 39 70 +31
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:
|
- Fixed critical calculation error where Texas supplement was double-multiplied - Changed tx_lifeline_supplement from YEAR to MONTH definition period - Created unified is_lifeline_income_eligible variable that handles both federal (135% FPG) and state expansions (TX at 150% FPG) - Removed redundant tx_lifeline_income_eligible variable - Fixed variable references from incorrect DART transit links to proper Texas Admin Code citations - Fixed float32/float64 dtype mismatch that caused comparison failures at exact thresholds - Added comprehensive integration tests for Texas Lifeline scenarios - Tests now properly validate income eligibility expansion and supplement calculation The implementation now correctly models how Texas uses state authority to expand Lifeline eligibility beyond federal limits using state funding per Texas Utilities Code § 55.015(d-1).
PR Review Complete ✅Issues Found and Fixed
Legal Authority ClarifiedTexas can expand Lifeline eligibility to 150% FPG (beyond federal 135%) through:
All Tests Passing
|
- Capitalize FPG in parameter label - Remove utm_source tracking parameter from Cornell Law URLs
The tolerance approach doesn't work because the issue isn't about test precision - it's that float32(1.35) > float64(1.35) due to binary representation differences, causing people at exactly 135% FPG to be incorrectly rejected. This is a fundamental issue that needs to be fixed in the code, not the tests.
This file belongs in a separate repository, not in this PR.
policyengine_us/variables/gov/fcc/lifeline/is_lifeline_income_eligible.py
Show resolved
Hide resolved
…ngine/policyengine-us into PavelMakarchuk/issue6605
Pushed some minor formatting changes. @MaxGhenis read for review |
Fixes #6605