@@ -55,7 +55,7 @@ def test_default_response_function(cps_subsample):
5555 df2s = calc2s .dataframe (['iitax' , 's006' ])
5656 itax2s = round ((df2s ['iitax' ] * df2s ['s006' ]).sum () * 1e-9 , 3 )
5757 # ... calculate aggregate inctax using default behavior assumptions
58- default_beh_dict = tc .Calculator .read_json_assumptions ('{}' )
58+ default_beh_dict = tc .Calculator .read_json_parameters ('{}' )
5959 _ , df2d = response (calc1 , calc2d , default_beh_dict , dump = True )
6060 itax2d = round ((df2d ['iitax' ] * df2d ['s006' ]).sum () * 1e-9 , 3 )
6161 assert np .allclose (itax2d , itax2s )
@@ -82,7 +82,7 @@ def test_nondefault_response_function(cps_subsample):
8282 "BE_inc": {"2018": -0.1},
8383 "BE_cg": {"2018": -0.79}
8484 }"""
85- beh_dict = tc .Calculator .read_json_assumptions (beh_json )
85+ beh_dict = tc .Calculator .read_json_parameters (beh_json )
8686 # ... calculate behavioral response to reform
8787 pol = tc .Policy ()
8888 calc1 = tc .Calculator (records = rec , policy = pol )
@@ -98,7 +98,7 @@ def test_nondefault_response_function(cps_subsample):
9898 itax2 = round ((df2 ['iitax' ] * df2 ['s006' ]).sum () * 1e-9 , 3 )
9999 del df1
100100 del df2
101- assert np .allclose ([itax1 , itax2 ], [1422.156 , 1368.489 ])
101+ assert np .allclose ([itax1 , itax2 ], [1441.722 , 1385.666 ])
102102
103103
104104def test_alternative_behavior_parameters (cps_subsample ):
@@ -112,7 +112,7 @@ def test_alternative_behavior_parameters(cps_subsample):
112112 assert refyear >= 2018
113113 reform = {refyear : {'_II_em' : [1500 ]}}
114114 # ... specify alternative set of behavior parameters
115- beh_dict = tc .Calculator .read_json_assumptions (
115+ beh_dict = tc .Calculator .read_json_parameters (
116116 '{"BE_inc": {"2018": -0.10}}'
117117 )
118118 # ... use the alternative behavior parameters and dump option
@@ -198,7 +198,7 @@ def test_sub_effect_independence(stcg):
198198 recs = tc .Records (data = input_dataframe ,
199199 start_year = refyear ,
200200 gfactors = None , weights = None )
201- beh_dict = tc .Calculator .read_json_assumptions (beh_json )
201+ beh_dict = tc .Calculator .read_json_parameters (beh_json )
202202 pol = tc .Policy ()
203203 calc1 = tc .Calculator (records = recs , policy = pol )
204204 assert calc1 .current_year == refyear
0 commit comments