PolicyEngine / policyengine

Source code for PolicyEngine
https://policyengine.org
GNU Affero General Public License v3.0
12 stars 4 forks source link

Add inf/-inf buttons to numeric parameters #972

Open MaxGhenis opened 1 year ago

MaxGhenis commented 1 year ago

Several policy parameters can be uncapped, which we currently represent as .inf or -.inf in the yaml files. But they don't show up properly in PolicyEngine and there's no way to set a parameter to one of these values. The Inflation Reduction Act adds several such cases, e.g. removing lifetime limits:

image

One option is a pair of buttons beside the slider and numeric entry to set a parameter to inf or -inf.