From ce488569ba43ede6471c5f35672ee43efa09e943 Mon Sep 17 00:00:00 2001 From: davidmcdonagh Date: Wed, 19 Jun 2024 14:58:21 +0100 Subject: [PATCH] Raise threshold of test_finite_diffs slightly. --- tests/algorithms/refinement/test_finite_diffs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/algorithms/refinement/test_finite_diffs.py b/tests/algorithms/refinement/test_finite_diffs.py index 2c4df070ac..f47ff26441 100644 --- a/tests/algorithms/refinement/test_finite_diffs.py +++ b/tests/algorithms/refinement/test_finite_diffs.py @@ -478,7 +478,7 @@ def test_laue_target_function(dials_data): diffs = [a - b for a, b in zip(dL_dp, fdgrads[0])] norm_diffs = tuple([a / b for a, b in zip(diffs, fdgrads[0])]) for e in norm_diffs: - assert abs(e) < 0.001 # check differences less than 0.1% + assert abs(e) < 0.002 # check differences less than 0.2% # test normalised differences between FD curvatures and analytical least # squares approximation. We don't expect this to be especially close