From d18bc4ef48c8b5a64675a856f2f39b9c11fc3402 Mon Sep 17 00:00:00 2001 From: "Matthew N. White" Date: Tue, 13 Aug 2024 15:17:31 -0400 Subject: [PATCH] Forgot to run pre-commit --- HARK/ConsumptionSaving/ConsIndShockModel.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/HARK/ConsumptionSaving/ConsIndShockModel.py b/HARK/ConsumptionSaving/ConsIndShockModel.py index 4f63c2ff2..22bdeca65 100644 --- a/HARK/ConsumptionSaving/ConsIndShockModel.py +++ b/HARK/ConsumptionSaving/ConsIndShockModel.py @@ -405,7 +405,7 @@ def calc_worst_inc_prob(inc_shk_dstn): perm, tran = inc_shk_dstn.atoms income = perm * tran try: - worst_inc = np.prod(inc_shk_dstn.limit['infimum']) + worst_inc = np.prod(inc_shk_dstn.limit["infimum"]) except: worst_inc = np.min(income) return np.sum(probs[income == worst_inc]) @@ -421,12 +421,12 @@ def calc_boro_const_nat(m_nrm_min_next, inc_shk_dstn, rfree, perm_gro_fac): perm_gro_fac (float): Permanent income growth factor. """ try: - perm_min, tran_min = inc_shk_dstn.limit['infimum'] + perm_min, tran_min = inc_shk_dstn.limit["infimum"] except: perm, tran = inc_shk_dstn.atoms perm_min = np.min(perm) tran_min = np.min(tran) - + temp_fac = (perm_gro_fac * perm_min) / rfree boro_cnst_nat = (m_nrm_min_next - tran_min) * temp_fac return boro_cnst_nat