Skip to content

Commit 454a07b

Browse files
committed
use new cons tax func in SS and TPI
1 parent 1559705 commit 454a07b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

ogcore/SS.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ def SS_solver(
951951
np.squeeze(p.e[-1, :, :]),
952952
p,
953953
)
954-
sales_tax_ss = (p.tau_c[-1, :] * p_i_ss).reshape(p.I, 1, 1) * cssmat
954+
sales_tax_ss = tax.cons_tax_liab(cssmat, p_i_ss, p, "SS")
955955
yss_before_tax_mat = household.get_y(
956956
r_p_ss, wss, bssmat_s, nssmat, p, "SS"
957957
)

ogcore/TPI.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -883,9 +883,7 @@ def run_TPI(p, client=None):
883883
p.e,
884884
p,
885885
)
886-
sales_tax_mat = (p.tau_c[: p.T, :] * p_i[: p.T, :]).reshape(
887-
p.T, p.I, 1, 1
888-
) * c_mat
886+
sales_tax_mat = tax.cons_tax_liab(c_mat, p_i, p, "TPI")
889887
C = aggr.get_C(c_mat, p, "TPI")
890888

891889
c_i = household.get_ci(

0 commit comments

Comments
 (0)