From 57fbbab2d9c31125303c6b8593fd86b82f7c82b2 Mon Sep 17 00:00:00 2001 From: Thomas Nipen Date: Mon, 11 Mar 2024 22:25:17 +0100 Subject: [PATCH] Remove unit test that throws exception within omp block --- tests/test_apply_curve.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_apply_curve.py b/tests/test_apply_curve.py index 614f1276..0f9a1782 100644 --- a/tests/test_apply_curve.py +++ b/tests/test_apply_curve.py @@ -105,11 +105,11 @@ def test_all_extrapolation_policies(self): def test_invalid_extrapolation_policy(self): policy = -1 - curve_fcst = np.random.rand(3, 2, 4) - curve_ref = np.random.rand(3, 2, 4) - field = np.random.rand(3, 2) + curve_fcst = [0, 1, 2] + curve_ref = [3, 4, 5] + input = 3 with self.assertRaises(ValueError) as e: - gridpp.apply_curve(field, curve_ref, curve_fcst, policy, policy) + gridpp.apply_curve(input, curve_ref, curve_fcst, policy, policy) if __name__ == '__main__':