From 4c66136881ab0da0a96dcf50a9a2b472f8ff1ab8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Berland?= Date: Mon, 19 Aug 2024 08:50:14 +0200 Subject: [PATCH] Relax requirement for interpolation in tests @reproduce_failure('6.111.1', b'AXicY2BgOGDAgAUc8L/eJVux8DqIKYAQFUBXx0gMk2gTAGS/CLQ=') triggers a failure (ip_dist_std =~ 1.03) which the accompanying plot reveals is perfectly fine. --- tests/test_utils_interpolation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_utils_interpolation.py b/tests/test_utils_interpolation.py index 328b24a6..c3a101f0 100644 --- a/tests/test_utils_interpolation.py +++ b/tests/test_utils_interpolation.py @@ -324,8 +324,8 @@ def test_interpolate_wo( # That means that diff of the distances should be similar, # that is the std.dev of the distances is low: ip_dist_std = np.std(np.diff(dists[1:])) # This number depends on 'h' and 't' range - # (avoiding the first which reproduces go_low - if ip_dist_std > 1.0: # Found by trial and error + # (avoiding the first which reproduces wo_low + if ip_dist_std > 1.1: # Found by trial and error print(f"ip_dist_std: {ip_dist_std}") print(dists)