Skip to content

Commit

Permalink
Set gdp elasticity for first year in reform
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Doupe committed Sep 21, 2017
1 parent e8ab8e9 commit bf1736c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions webapp/apps/dynamic/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,13 +324,14 @@ def dynamic_elasticities(request, pk):
else:
reform_dict = json.loads(taxbrain_model.json_text.reform_text)

reform_dict[reform_dict.keys()[0]]['elastic_gdp'] = worker_data['elastic_gdp']
min_year = min(reform_dict.keys(), key=float)
reform_dict[min_year]['elastic_gdp'] = worker_data['elastic_gdp']

submitted_ids, max_q_length = dropq_compute.submit_elastic_calculation(
reform_dict,
int(start_year),
is_file=False,
additional_data={},
additional_data=None,
pack_up_user_mods=False
)

Expand Down

0 comments on commit bf1736c

Please sign in to comment.