-
Notifications
You must be signed in to change notification settings - Fork 125
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
Parameter editor chart does not properly handle infinite values #2051
Comments
In terms of displaying, since we can't plot infinity on a chart, we could:
This would allow us to visualize without having to arbitrarily calculate some sort of stand-in that could be wrong, error-prone, or misleading. Setting something to infinity, on the other hand, could be a bit more challenging. |
Incredibly, |
How to display infinity in the years it's that value is a separate issue from what I reported here. For now I think not displaying it is fine. |
Note that this is almost certainly driven by infinity itself not being displayed, hence impossible to draw a line to meet with a point at infinity |
Yeah for now we can suggest including the last finite value in the year prior to infinity in the country package (PolicyEngine/policyengine-us#5252), but let's keep this open as it would be cleaner to do it in the front-end |
See this:

https://policyengine.org/us/policy?focus=gov.irs.deductions.itemized.salt_and_real_estate.cap.JOINT®ion=enhanced_us&timePeriod=2026&baseline=2&reform=56251
It's correctly specified as 10,000 from 2018 to 2025, inf otherwise: https://github.com/PolicyEngine/policyengine-us/blob/master/policyengine_us/parameters/gov/irs/deductions/itemized/salt_and_real_estate/cap.yaml
Should display a line in that range.
The text was updated successfully, but these errors were encountered: