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

Update policy parameter with 2019 IRS final values #2399

Merged
merged 15 commits into from
Feb 28, 2020
6 changes: 3 additions & 3 deletions ppp.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# specify year constants (only byear should vary)
syear = Policy.JSON_START_YEAR
pyear = 2017 # prior year before TCJA first implemented
byear = 2018 # base year: year for last known historical parameter values
byear = 2019 # base year: year for last known historical parameter values
fyear = 2026 # final year in which parameter values revert to pre-TCJA values

# ensure proper relationship between year constants
Expand All @@ -27,11 +27,11 @@

# identify policy parameters that have their values reverted in final year
skip_list = ['_II_brk7', '_PT_brk7'] # because they are both "infinity" (9e99)
fyr = '{}'.format(fyear)
fyr = fyear
reverting_params = list()
for pname in sorted(pdata.keys()):
pdict = pdata[pname]
if pdata[pname]['cpi_inflated'] and fyr in pdata[pname]['value_yrs']:
if pdata[pname]['indexed'] and fyr in pdata[pname]['value_yrs']:
if pname not in skip_list:
reverting_params.append(pname)
print('number_of_reverting_parameters= {}'.format(len(reverting_params)))
Expand Down
2 changes: 1 addition & 1 deletion taxcalc/policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class instance: Policy
DEFAULTS_FILE_NAME = 'policy_current_law.json'
DEFAULTS_FILE_PATH = os.path.abspath(os.path.dirname(__file__))
JSON_START_YEAR = 2013 # remains the same unless earlier data added
LAST_KNOWN_YEAR = 2018 # last year for which indexed param vals are known
LAST_KNOWN_YEAR = 2019 # last year for which indexed param vals are known
# should increase LAST_KNOWN_YEAR by one every calendar year
LAST_BUDGET_YEAR = 2029 # last extrapolation year
# should increase LAST_BUDGET_YEAR by one every calendar year
Expand Down
Loading