From cda854d354dc5019e51076d2b9e655de88ee3049 Mon Sep 17 00:00:00 2001 From: Johannes Schumann <johannes.schumann@fau.de> Date: Tue, 14 Dec 2021 14:13:12 +0100 Subject: [PATCH] Change to abs. tolerance for proton weight --- km3buu/tests/test_physics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/km3buu/tests/test_physics.py b/km3buu/tests/test_physics.py index 7d2bd24..815c36e 100644 --- a/km3buu/tests/test_physics.py +++ b/km3buu/tests/test_physics.py @@ -53,7 +53,7 @@ class TestVisibleEnergyWeights(unittest.TestCase): def test_proton_weight(self): vfunc = np.vectorize(proton_weight) val = vfunc(self.ref_values[0, :]) - assert np.allclose(self.ref_values[6, :], val, rtol=0.05) + assert np.allclose(self.ref_values[6, :], val, atol=0.05) def test_neutron_weight(self): vfunc = np.vectorize(neutron_weight) -- GitLab