PSLmodels / Tax-Brain

Tax-Brain is an integrator model for PSL tax models
http://taxbrain.pslmodels.org/
MIT License
9 stars 14 forks source link

COMP Error #71

Closed hdoupe closed 5 years ago

hdoupe commented 5 years ago
Traceback (most recent call last):
  File "/home/distributed/api/celery_app/__init__.py", line 71, in f
    outputs = func(*args, **kwargs)
  File "/home/distributed/api/celery_app/pslmodels_taxbrain_tasks.py", line 30, in sim
    return compconfig.run_model(meta_param_dict, adjustment)
  File "/opt/conda/lib/python3.7/site-packages/compconfig/functions.py", line 126, in run_model
    policy_mods = convert_adj(adjustment["policy"], meta_params.year.tolist())
  File "/opt/conda/lib/python3.7/site-packages/compconfig/helpers.py", line 170, in convert_adj
    pol.implement_reform(new_adj, raise_errors=False)
  File "/opt/conda/lib/python3.7/site-packages/taxcalc/policy.py", line 128, in implement_reform
    self._update(reform, print_warnings, raise_errors)
  File "/opt/conda/lib/python3.7/site-packages/taxcalc/parameters.py", line 335, in _update
    known_years = self._apply_cpi_offset_in_revision(revision)
  File "/opt/conda/lib/python3.7/site-packages/taxcalc/parameters.py", line 850, in _apply_cpi_offset_in_revision
    if self._vals[name]['indexed']:
KeyError: '_CTC_c-indexed'
andersonfrailey commented 5 years ago

This issue has been logged in the Tax-Calculator repo along with a PR to fix the bug.

hdoupe commented 5 years ago

Great, thanks @andersonfrailey!

andersonfrailey commented 5 years ago

Now that Tax-Calculator 2.5.0 has been released this should be resolved. Closing.