Skip to content
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

Add cpi_inflatable field for each parameter in the four JSON parameters files #1838

Merged
merged 2 commits into from
Jan 20, 2018
Merged

Add cpi_inflatable field for each parameter in the four JSON parameters files #1838

merged 2 commits into from
Jan 20, 2018

Conversation

martinholmer
Copy link
Collaborator

@martinholmer martinholmer commented Jan 20, 2018

This pull request contains an enhancement that makes it easier for TaxBrain to determine which parameters can have their cpi_inflated value changed in a reform.

Trying to set cpi_inflated to true for a variable that has cpi_inflatable equal to false, will generate a reform implementation error that is raised as a ValueError, in exactly the same as if an unknown parameter name was included in the JSON reform file. This should never arise when the TaxBrain GUI is being used because TaxBrain will never prepare a JSON reform file that generates this reform error. However, just as there is no way to prevent a TaxBrain user from uploading a JSON reform file that contains an unknown parameter name, the file upload logic in TaxBrain needs to catch these kind of ValueError messages. I believe TaxBrain file upload logic already does this, so this enhancement should not involve any changes to the file upload capability.

There are no changes in tax calculating logic or results.

@codecov-io
Copy link

codecov-io commented Jan 20, 2018

Codecov Report

Merging #1838 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #1838   +/-   ##
======================================
  Coverage     100%    100%           
======================================
  Files          37      37           
  Lines        3100    3103    +3     
======================================
+ Hits         3100    3103    +3
Impacted Files Coverage Δ
taxcalc/policy.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 009c5a7...4ae9fe5. Read the comment docs.

@martinholmer martinholmer merged commit dbc3d8d into PSLmodels:master Jan 20, 2018
@martinholmer martinholmer deleted the add-cpi-inflatable branch January 27, 2018 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants