Skip to content

Commit

Permalink
Revise test targets
Browse files Browse the repository at this point in the history
Default dictionary for NK consumers changed on previous commit, so test values changed. What's more concerning is that a bunch of econforge.interp tests are failing now too.
  • Loading branch information
mnwhite committed Jun 14, 2024
1 parent 455b2c4 commit 2914d5c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions HARK/ConsumptionSaving/tests/test_ConsNewKeynesianModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def test_calc_tran_matrix(self):
AggC = np.dot(gridc.flatten(), vecDstn) # Aggregate Consumption
AggA = np.dot(grida.flatten(), vecDstn) # Aggregate Assets

self.assertAlmostEqual(AggA[0], 1.19513, places=4)
self.assertAlmostEqual(AggC[0], 1.00417, places=4)
self.assertAlmostEqual(AggA[0], 0.82984, places=4)
self.assertAlmostEqual(AggC[0], 1.00780, places=4)


# %% Test Heterogenous Agent Jacobian Methods
Expand All @@ -52,6 +52,6 @@ def test_calc_jacobian(self):
Agent.compute_steady_state()
CJAC_Perm, AJAC_Perm = Agent.calc_jacobian("PermShkStd", 50)

self.assertAlmostEqual(CJAC_Perm.T[30][29], -0.06120, places=HARK_PRECISION)
self.assertAlmostEqual(CJAC_Perm.T[30][30], 0.05307, places=HARK_PRECISION)
self.assertAlmostEqual(CJAC_Perm.T[30][31], 0.04674, places=HARK_PRECISION)
self.assertAlmostEqual(CJAC_Perm.T[30][29], -0.10503, places=HARK_PRECISION)
self.assertAlmostEqual(CJAC_Perm.T[30][30], 0.10316, places=HARK_PRECISION)
self.assertAlmostEqual(CJAC_Perm.T[30][31], 0.09059, places=HARK_PRECISION)

0 comments on commit 2914d5c

Please sign in to comment.