Skip to content

Instantly share code, notes, and snippets.

@MaxGhenis
Created August 2, 2020 18:41
Show Gist options
  • Save MaxGhenis/21eef37a722773d0ced4900f276a5c54 to your computer and use it in GitHub Desktop.
Save MaxGhenis/21eef37a722773d0ced4900f276a5c54 to your computer and use it in GitHub Desktop.
Log of error when running run_ogusa_example.py
c': {2017: [9e+99, 9e+99, 9e+99, 9e+99, 9e+99]}, 'ID_Charity_c': {2017: [9e+99, 9e+99, 9e+99, 9e+99, 9e+99]}, 'ID_Casualty_c': {2017: [9e+99, 9e+99, 9e+99, 9e+99, 9e+99]}, 'ID_Miscellaneous_c': {2017: [9e+99, 9e+99, 9e+99, 9e+99, 9e+99]}, 'ID_ps': {2017: [261500, 313800, 156900, 287650, 313800]}, 'ID_BenefitSurtax_em': {2017: [0, 0, 0, 0, 0]}, 'ID_c': {2017: [9e+99, 9e+99, 9e+99, 9e+99, 9e+99]}, 'CG_brk1': {2017: [37950, 75900, 37950, 50800, 75900]}, 'CG_brk2': {2017: [418400, 470700, 235350, 444550, 470700]}, 'CG_brk3': {2017: [9e+99,
9e+99, 9e+99, 9e+99, 9e+99]}, 'AMT_CG_brk1': {2017: [37950, 75900, 37950, 50800, 75900]}, 'AMT_CG_brk2': {2017: [418400, 470700, 235350, 444550, 470700]}, 'AMT_CG_brk3': {2017: [9e+99, 9e+99, 9e+99, 9e+99, 9e+99]}, 'CG_ec': {2017: 0}, 'AMT_child_em': {2017: 7500}, 'AMT_brk1': {2017: 187800}, 'EITC_c': {2017: [510, 3400, 5616, 6318]}, 'EITC_ps': {2017: [8340, 18340, 18340, 18340]}, 'EITC_ps_MarriedJ': {2017: [5600, 5600, 5600, 5600]}, 'EITC_InvestIncome_c': {2017: 3450}, 'ETC_pe_Single': {2017: 66}, 'ETC_pe_Married': {2017: 132}, 'CTC_new_ps': {2017: [0, 0, 0, 0, 0]}, 'FST_AGI_thd_lo': {2017: [1000000.0, 1000000.0, 500000.0, 1000000.0, 1000000.0]}, 'FST_AGI_thd_hi': {2017: [2000000.0, 2000000.0, 1000000.0, 2000000.0, 2000000.0]}, 'AGI_surtax_thd': {2017: [9e+99, 9e+99, 9e+99, 9e+99, 9e+99]}, 'UBI_u18':
{2017: 0}, 'UBI_1820': {2017: 0}, 'UBI_21': {2017: 0}}
TYPE <class 'dict'>
distributed.worker - WARNING - Compute Failed
Function: execute_task
args: ((<function taxcalc_advance at 0x7a01ec4dc0e0>, False, 2020, (<class 'dict'>, [['parameter_indexing_CPI_offset', (<class 'dict'>, [[2017, 0]])], ['II_rt1', (<class 'dict'>, [[2018, 0.1]])], ['II_brk1', (<class 'dict'>, [[2017, [9325, 18650, 9325, 13350, 18650]]])], ['II_rt2', (<class 'dict'>, [[2018, 0.15]])], ['II_brk2', (<class 'dict'>, [[2017, [37950, 75900, 37950, 50800, 75900]]])], ['II_rt3', (<class 'dict'>, [[2018, 0.25]])], ['II_brk3', (<class 'dict'>, [[2017, [91900, 153100, 76550, 131200, 153100]]])], ['II_rt4', (<class 'dict'>, [[2018, 0.28]])], ['II_brk4', (<class 'dict'>, [[2017, [191650, 233350, 116675, 212500, 233350]]])], ['II_rt5', (<class 'dict'>, [[2018, 0.33]])], ['II_brk5', (<class 'dict'>, [[2017, [416700, 416700, 208350, 416700, 416700]]])], ['II_rt6', (<class 'dict'>, [[2018, 0.35]])], ['II_brk6', (<class 'dict'>, [[2017, [418400, 470700, 235350, 444550, 470700]]])], ['II_rt7', (<class 'dict'>, [[2018, 0.396]])], ['PT_rt1', (<class 'dict'>, [[2018, 0.1]])], ['PT
kwargs: {}
Exception: ValueError('ERROR: 2017 parameter_indexing_CPI_offset is an unknown parameter name\n')
Traceback (most recent call last):
File "run_ogusa_example.py", line 125, in <module>
main()
File "run_ogusa_example.py", line 93, in main
runner(**kwargs)
File "/home/mghenis/PSLmodels/OG-USA/ogusa/execute.py", line 71, in runner
spec.get_tax_function_parameters(client, run_micro, tax_func_path)
File "/home/mghenis/PSLmodels/OG-USA/ogusa/parameters.py", line 317, in get_tax_function_parameters
self.num_workers)
File "/home/mghenis/PSLmodels/OG-USA/ogusa/txfunc.py", line 1201, in get_tax_func_estimate
client=client, num_workers=num_workers)
File "/home/mghenis/PSLmodels/OG-USA/ogusa/txfunc.py", line 966, in tax_func_estimate
data=data, client=client, num_workers=num_workers)
File "/home/mghenis/PSLmodels/OG-USA/ogusa/get_micro_data.py", line 116, in get_data
results = client.gather(futures)
File "/home/mghenis/anaconda3/envs/ogusa-dev/lib/python3.7/site-packages/distributed/client.py", line 1988, in gather
asynchronous=asynchronous,
File "/home/mghenis/anaconda3/envs/ogusa-dev/lib/python3.7/site-packages/distributed/client.py", line 833, in sync
self.loop, func, *args, callback_timeout=callback_timeout, **kwargs
File "/home/mghenis/anaconda3/envs/ogusa-dev/lib/python3.7/site-packages/distributed/utils.py", line 339, in sync
raise exc.with_traceback(tb)
File "/home/mghenis/anaconda3/envs/ogusa-dev/lib/python3.7/site-packages/distributed/utils.py", line 323, in f
result[0] = yield future
File "/home/mghenis/anaconda3/envs/ogusa-dev/lib/python3.7/site-packages/tornado/gen.py", line 735, in run
value = future.result()
File "/home/mghenis/anaconda3/envs/ogusa-dev/lib/python3.7/site-packages/distributed/client.py", line 1847, in _gather
distributed.worker - WARNING - Compute Failed
Function: execute_task
args: ((<function taxcalc_advance at 0x79b6e06520e0>, False, 2020, (<class 'dict'>, [['parameter_indexing_CPI_offset', (<class 'dict'>, [[2017, 0]])], ['II_rt1', (<class 'dict'>, [[2018, 0.1]])], ['II_brk1', (<class 'dict'>, [[2017, [9325, 18650, 9325, 13350, 18650]]])], ['II_rt2', (<class 'dict'>, [[2018, 0.15]])], ['II_brk2', (<class 'dict'>, [[2017, [37950, 75900, 37950, 50800, 75900]]])], ['II_rt3', (<class 'dict'>, [[2018, 0.25]])], ['II_brk3', (<class 'dict'>, [[2017, [91900, 153100, 76550, 131200, 153100]]])], ['II_rt4', (<class 'dict'>, [[2018, 0.28]])], ['II_brk4', (<class 'dict'>, [[2017, [191650, 233350, 116675, 212500, 233350]]])], ['II_rt5', (<class 'dict'>, [[2018, 0.33]])], ['II_brk5', (<class 'dict'>, [[2017, [416700, 416700, 208350, 416700, 416700]]])], ['II_rt6', (<class 'dict'>, [[2018, 0.35]])], ['II_brk6', (<class 'dict'>, [[2017, [418400, 470700, 235350, 444550, 470700]]])], ['II_rt7', (<class 'dict'>, [[2018, 0.396]])], ['PT_rt1', (<class 'dict'>, [[2018, 0.1]])], ['PT
kwargs: {}
Exception: ValueError('ERROR: 2017 parameter_indexing_CPI_offset is an unknown parameter name\n')
raise exception.with_traceback(traceback)
File "/home/mghenis/PSLmodels/OG-USA/ogusa/get_micro_data.py", line 160, in taxcalc_advance
reform=reform, data=data)
File "/home/mghenis/PSLmodels/OG-USA/ogusa/get_micro_data.py", line 70, in get_calculator
policy1.implement_reform(reform)
File "/home/mghenis/anaconda3/envs/ogusa-dev/lib/python3.7/site-packages/taxcalc/policy.py", line 128, in implement_reform
self._update(reform, print_warnings, raise_errors)
File "/home/mghenis/anaconda3/envs/ogusa-dev/lib/python3.7/site-packages/taxcalc/parameters.py", line 333, in _update
raise ValueError(self.parameter_errors)
ValueError: ERROR: 2017 parameter_indexing_CPI_offset is an unknown parameter name
(ogusa-dev) mghenis@penguin:~/PSLmodels/OG-USA/run_examples$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment