From 83b6120eb203f139556cc846e07c5ecb8ee61afa Mon Sep 17 00:00:00 2001 From: Thomas Roosli Date: Thu, 18 Jan 2024 16:07:42 +0100 Subject: [PATCH] Fix test_surge_from_track after change in Holland 2008 implementation (climada_python PR #833) --- climada_petals/hazard/test/test_tc_surge_bathtub.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/climada_petals/hazard/test/test_tc_surge_bathtub.py b/climada_petals/hazard/test/test_tc_surge_bathtub.py index dfcac0c36..89326bc00 100644 --- a/climada_petals/hazard/test/test_tc_surge_bathtub.py +++ b/climada_petals/hazard/test/test_tc_surge_bathtub.py @@ -174,8 +174,8 @@ def test_surge_from_track(self): np.testing.assert_array_equal(inten[fraction == 0], 0) # check individual known pixel values - self.assertAlmostEqual(inten[9, 31], max(-0.391 + slr, 0), places=2) - self.assertAlmostEqual(inten[14, 34] - slr, 3.637, places=2) + self.assertAlmostEqual(inten[9, 31], max(-1.219 + slr, 0), places=2) + self.assertAlmostEqual(inten[14, 34] - slr, 2.825, places=2) # Execute Tests