From 2914d5c6e78e56cc4eb91ab534c90d846f01cbce Mon Sep 17 00:00:00 2001 From: "Matthew N. White" Date: Fri, 14 Jun 2024 10:19:17 -0400 Subject: [PATCH] Revise test targets 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. --- .../tests/test_ConsNewKeynesianModel.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/HARK/ConsumptionSaving/tests/test_ConsNewKeynesianModel.py b/HARK/ConsumptionSaving/tests/test_ConsNewKeynesianModel.py index ad48dbd01..c2b654882 100644 --- a/HARK/ConsumptionSaving/tests/test_ConsNewKeynesianModel.py +++ b/HARK/ConsumptionSaving/tests/test_ConsNewKeynesianModel.py @@ -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 @@ -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)