Skip to content

Commit

Permalink
passing tax func type in all necessary spots
Browse files Browse the repository at this point in the history
  • Loading branch information
jdebacker committed Apr 20, 2018
1 parent a0dff56 commit effc32f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions ogusa/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ def get_parameters_from_file():
def get_parameters(output_base, reform={}, test=False, baseline=False,
guid='', user_modifiable=False, metadata=False,
run_micro=False, constant_rates=True,
analytical_mtrs=False, age_specific=False,
start_year=DEFAULT_START_YEAR, data=None,
client=None, num_workers=1, **small_open):
analytical_mtrs=False, tax_func_type='DEP',
age_specific=False, start_year=DEFAULT_START_YEAR,
data=None, client=None, num_workers=1, **small_open):

'''
--------------------------------------------------------------------
Expand Down Expand Up @@ -386,6 +386,7 @@ def get_parameters(output_base, reform={}, test=False, baseline=False,
txfunc.get_tax_func_estimate(BW, S, starting_age, ending_age,
baseline=baseline,
analytical_mtrs=analytical_mtrs,
tax_func_type=tax_func_type,
age_specific=age_specific,
start_year=start_year,
reform=reform, guid=guid,
Expand Down
6 changes: 3 additions & 3 deletions ogusa/scripts/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ def runner(output_base, baseline_dir, test=False, time_path=True,
run_params = ogusa.parameters.get_parameters(
output_base, reform=reform, test=test, baseline=baseline,
guid=guid, run_micro=run_micro, constant_rates=constant_rates,
analytical_mtrs=analytical_mtrs, age_specific=age_specific,
start_year=start_year, data=data, client=client,
num_workers=num_workers, **small_open)
analytical_mtrs=analytical_mtrs, tax_func_type=tax_func_type,
age_specific=age_specific, start_year=start_year, data=data,
client=client, num_workers=num_workers, **small_open)
run_params['analytical_mtrs'] = analytical_mtrs
run_params['small_open'] = bool(small_open)
run_params['budget_balance'] = budget_balance
Expand Down

0 comments on commit effc32f

Please sign in to comment.