Skip to content

Commit

Permalink
Forgot to run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mnwhite committed Aug 13, 2024
1 parent 7bba4d7 commit d18bc4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions HARK/ConsumptionSaving/ConsIndShockModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand All @@ -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
Expand Down

0 comments on commit d18bc4e

Please sign in to comment.