Skip to content

Commit

Permalink
Merge pull request #880 from jdebacker/std_output_tpi
Browse files Browse the repository at this point in the history
Merging
  • Loading branch information
rickecon authored Sep 8, 2023
2 parents 2528e2b + a6edd02 commit 9d7c814
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 57 deletions.
110 changes: 55 additions & 55 deletions ogcore/TPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -1242,61 +1242,61 @@ def run_TPI(p, client=None):
"""

output = {
"Y": Y[: p.T],
"B": B,
"K": K,
"K_f": K_f,
"K_d": K_d,
"L": L,
"C": C,
"I": I,
"K_g": K_g,
"I_g": I_g,
"Y_vec": Y_vec,
"K_vec": K_vec,
"L_vec": L_vec,
"C_vec": C_vec,
"I_total": I_total,
"I_d": I_d,
"BQ": BQ,
"total_tax_revenue": total_tax_revenue,
"business_tax_revenue": business_tax_revenue,
"iit_payroll_tax_revenue": iit_payroll_tax_revenue,
"iit_revenue": iit_revenue,
"payroll_tax_revenue": payroll_tax_revenue,
"TR": TR,
"agg_pension_outlays": agg_pension_outlays,
"bequest_tax_revenue": bequest_tax_revenue,
"wealth_tax_revenue": wealth_tax_revenue,
"cons_tax_revenue": cons_tax_revenue,
"G": G,
"D": D,
"D_f": D_f,
"D_d": D_d,
"r": r,
"r_gov": r_gov,
"r_p": r_p,
"w": w,
"bmat_splus1": bmat_splus1,
"p_m": p_m,
"p_tilde": p_tilde,
"bmat_s": bmat_s[: p.T, :, :],
"n_mat": n_mat[: p.T, :, :],
"c_path": c_mat,
"bq_path": bqmat,
"tr_path": trmat,
"y_before_tax_mat": y_before_tax_mat,
"tax_path": tax_mat,
"eul_savings": eul_savings,
"eul_laborleisure": eul_laborleisure,
"resource_constraint_error": RC_error,
"new_borrowing_f": new_borrowing_f,
"debt_service_f": debt_service_f,
"etr_path": etr_path,
"mtrx_path": mtrx_path,
"mtry_path": mtry_path,
"ubi_path": ubi,
"UBI_path": UBI,
"Y": Y[: p.T, ...],
"B": B[: p.T, ...],
"K": K[: p.T, ...],
"K_f": K_f[: p.T],
"K_d": K_d[: p.T, ...],
"L": L[: p.T, ...],
"C": C[: p.T, ...],
"I": I[: p.T, ...],
"K_g": K_g[: p.T, ...],
"I_g": I_g[: p.T, ...],
"Y_vec": Y_vec[: p.T, ...],
"K_vec": K_vec[: p.T, ...],
"L_vec": L_vec[: p.T, ...],
"C_vec": C_vec[: p.T, ...],
"I_total": I_total[: p.T, ...],
"I_d": I_d[: p.T, ...],
"BQ": BQ[: p.T, ...],
"total_tax_revenue": total_tax_revenue[: p.T, ...],
"business_tax_revenue": business_tax_revenue[: p.T, ...],
"iit_payroll_tax_revenue": iit_payroll_tax_revenue[: p.T, ...],
"iit_revenue": iit_revenue[: p.T, ...],
"payroll_tax_revenue": payroll_tax_revenue[: p.T, ...],
"TR": TR[: p.T, ...],
"agg_pension_outlays": agg_pension_outlays[: p.T, ...],
"bequest_tax_revenue": bequest_tax_revenue[: p.T, ...],
"wealth_tax_revenue": wealth_tax_revenue[: p.T, ...],
"cons_tax_revenue": cons_tax_revenue[: p.T, ...],
"G": G[: p.T, ...],
"D": D[: p.T, ...],
"D_f": D_f[: p.T, ...],
"D_d": D_d[: p.T, ...],
"r": r[: p.T, ...],
"r_gov": r_gov[: p.T, ...],
"r_p": r_p[: p.T, ...],
"w": w[: p.T, ...],
"bmat_splus1": bmat_splus1[: p.T, ...],
"p_m": p_m[: p.T, ...],
"p_tilde": p_tilde[: p.T, ...],
"bmat_s": bmat_s[: p.T, ...],
"n_mat": n_mat[: p.T, ...],
"c_path": c_mat[: p.T, ...],
"bq_path": bqmat[: p.T, ...],
"tr_path": trmat[: p.T, ...],
"y_before_tax_mat": y_before_tax_mat[: p.T, ...],
"tax_path": tax_mat[: p.T, ...],
"eul_savings": eul_savings[: p.T, ...],
"eul_laborleisure": eul_laborleisure[: p.T, ...],
"resource_constraint_error": RC_error[: p.T, ...],
"new_borrowing_f": new_borrowing_f[: p.T, ...],
"debt_service_f": debt_service_f[: p.T, ...],
"etr_path": etr_path[: p.T, ...],
"mtrx_path": mtrx_path[: p.T, ...],
"mtry_path": mtry_path[: p.T, ...],
"ubi_path": ubi[: p.T, ...],
"UBI_path": UBI[: p.T, ...],
}

tpi_dir = os.path.join(p.output_base, "TPI")
Expand Down
2 changes: 1 addition & 1 deletion ogcore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
from ogcore.txfunc import *
from ogcore.utils import *

__version__ = "0.10.8"
__version__ = "0.10.9"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="ogcore",
version="0.10.8",
version="0.10.9",
author="Jason DeBacker and Richard W. Evans",
license="CC0 1.0 Universal (CC0 1.0) Public Domain Dedication",
description="A general equilibribum overlapping generations model for fiscal policy analysis",
Expand Down

0 comments on commit 9d7c814

Please sign in to comment.