PSLmodels / OG-UK

An overlapping generations model to simulate fiscal policy the United Kingdom.
https://pslmodels.github.io/OG-UK
Other
6 stars 7 forks source link

Update `calibrate.py` due to new tax function parameters #55

Open jdebacker opened 1 year ago

jdebacker commented 1 year ago

In Issue #36, @jpycroft notes the following:

File "c:\users\jonat\repos\og-uk\oguk\calibrate.py", line 153, in get_tax_function_parameters
num_etr_params = dict_params["tfunc_etr_params_S"].shape[2]
AttributeError: 'list' object has no attribute 'shape'

After changes in OG-Core (PR #819), the tax parameters are stored in lists, not arrays. Thus a change is needed in calibrate.py in this repo to determine the number of parameters in a different way.