From 9976f09f9825fa1496fd8f39b15d6997795b8f4c Mon Sep 17 00:00:00 2001 From: Thomas Baumann <39156931+brownbaerchen@users.noreply.github.com> Date: Thu, 9 Nov 2023 07:22:49 +0100 Subject: [PATCH] Hopefully fixed a flaky test --- .../test_extrapolation_within_Q.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pySDC/tests/test_convergence_controllers/test_extrapolation_within_Q.py b/pySDC/tests/test_convergence_controllers/test_extrapolation_within_Q.py index eae18798b5..b2e16a6532 100644 --- a/pySDC/tests/test_convergence_controllers/test_extrapolation_within_Q.py +++ b/pySDC/tests/test_convergence_controllers/test_extrapolation_within_Q.py @@ -162,7 +162,7 @@ def check_order(dts, **kwargs): for key in keys: errors = np.array([res[dt][key] for dt in dts]) - mask = np.logical_and(errors < 1e-0, errors > 1e-14) + mask = np.logical_and(errors < 1e-1, errors > 1e-12) order = np.log(errors[mask][1:] / errors[mask][:-1]) / np.log(dts[mask][1:] / dts[mask][:-1]) assert np.isclose( @@ -183,7 +183,7 @@ def test_extrapolation_within_Q(num_nodes, quad_type): import numpy as np - steps = np.logspace(1, -4, 20) + steps = np.logspace(-1, -3, 10) check_order(steps, **kwargs)