Skip to content

Commit

Permalink
reshape arrays for test tax
Browse files Browse the repository at this point in the history
  • Loading branch information
jdebacker committed Jan 18, 2024
1 parent e2f060d commit a710dad
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_tax.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"J": 1,
"T": 4,
"eta": (np.ones((4, 1)) / (4 * 1)),
"e": np.ones((4, 1)),
}
p.update_specifications(new_param_values)
p.retire = [3, 3, 3, 3, 3, 3, 3, 3]
Expand Down Expand Up @@ -78,6 +79,7 @@ def test_replacement_rate_vals(n, w, factor, j, p_in, expected):
"lambdas": [1.0],
"J": 1,
"T": 3,
"e": np.ones((3, 1)),
"eta": (np.ones((3, 1)) / (3 * 1)),
"h_wealth": [2],
"p_wealth": [3],
Expand All @@ -94,6 +96,7 @@ def test_replacement_rate_vals(n, w, factor, j, p_in, expected):
"lambdas": [1.0],
"J": 1,
"T": 3,
"e": np.ones((3, 1)),
"eta": (np.ones((3, 1)) / (3 * 1)),
"h_wealth": [1.2, 1.1, 2.3],
"p_wealth": [2.2, 2.3, 1.8],
Expand Down Expand Up @@ -127,6 +130,7 @@ def test_ETR_wealth(b, p, expected):
"lambdas": [1.0],
"J": 1,
"T": 3,
"e": np.ones((3, 1)),
"eta": (np.ones((3, 1)) / (3 * 1)),
"h_wealth": [3],
"p_wealth": [4],
Expand All @@ -144,6 +148,7 @@ def test_ETR_wealth(b, p, expected):
"lambdas": [1.0],
"J": 1,
"T": 3,
"e": np.ones((3, 1)),
"eta": (np.ones((3, 1)) / (3 * 1)),
"h_wealth": [1.2, 1.1, 2.3],
"p_wealth": [2.2, 2.3, 1.8],
Expand Down Expand Up @@ -878,6 +883,7 @@ def test_MTR_income(etr_params, mtr_params, params, mtr_capital, expected):
"inv_tax_credit": [[0.02]],
"T": 3,
"S": 3,
"e": np.ones((3, p1.J)),
"rho": rho_vec.tolist(),
"eta": (np.ones((3, p1.J)) / (3 * p1.J)),
"labor_income_tax_noncompliance_rate": [[0.0]],
Expand Down Expand Up @@ -1206,6 +1212,7 @@ def test_get_biz_tax(w, Y, L, K, p_m, p, m, method, expected):
"T": 3,
"S": 3,
"J": 2,
"e": np.ones((3, 2)),
"rho": rho_vec.tolist(),
"lambdas": [0.65, 0.35],
"eta": (np.ones((3, 2)) / (3 * 2)),
Expand Down

0 comments on commit a710dad

Please sign in to comment.