From 6166a34b91d909e35b5b6b50f6017b080a1ca352 Mon Sep 17 00:00:00 2001 From: juacrumar Date: Mon, 12 Jun 2023 12:36:28 +0200 Subject: [PATCH] add rtol to the test --- n3fit/src/n3fit/tests/test_evolven3fit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/n3fit/src/n3fit/tests/test_evolven3fit.py b/n3fit/src/n3fit/tests/test_evolven3fit.py index 8cab0b4927..e8b4f55c01 100644 --- a/n3fit/src/n3fit/tests/test_evolven3fit.py +++ b/n3fit/src/n3fit/tests/test_evolven3fit.py @@ -146,11 +146,11 @@ def test_eko_utils(tmp_path): assert_allclose(op_card_dict["xgrid"], x_grid) # In theory 162 the charm threshold is at 1.51 # and we should find two entries, one for nf=3 and another one for nf=4 - assert_allclose(op_card_dict["mugrid"][0], (1.51, 3)) + assert_allclose(op_card_dict["mugrid"][0], (1.51, 3), rtol=1e-4) assert_allclose(op_card_dict["mugrid"][1], (1.51, 4)) # Then (with the number of points we chosen it will happen in position 2,3 # we will find the bottom threshold at two different nf - assert_allclose(op_card_dict["mugrid"][2], (4.92, 4)) + assert_allclose(op_card_dict["mugrid"][2], (4.92, 4), rtol=1e-4) assert_allclose(op_card_dict["mugrid"][3], (4.92, 5)) assert_allclose(op_card_dict["mugrid"][-1], (q_fin, 5)) # Testing computation of eko