From 31afcfe7dee74329c84be668e5bd5b8c32fc873e Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Thu, 30 May 2024 02:03:16 -0500 Subject: [PATCH] test(backport): Lower tolerance for agreement between amd64 and arm64 * Backport PR https://github.com/scikit-hep/pyhf/pull/ 2447 --- tests/test_calculator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_calculator.py b/tests/test_calculator.py index 97b5fa4e3d..973d1e27bc 100644 --- a/tests/test_calculator.py +++ b/tests/test_calculator.py @@ -84,6 +84,7 @@ def test_asymptotic_calculator_has_fitted_pars(test_stat): assert pytest.approx([1.0, 1.0], rel=rtol) == pyhf.tensorlib.tolist( fitted_pars.free_fit_to_data ) + # lower tolerance for amd64 and arm64 to agree assert pytest.approx( - [7.6470499e-05, 1.4997178], rel=rtol + [7.6470499e-05, 1.4997178], rel=1e-3 ) == pyhf.tensorlib.tolist(fitted_pars.free_fit_to_asimov)