Skip to content
Snippets Groups Projects
Commit cda854d3 authored by Johannes Schumann's avatar Johannes Schumann
Browse files

Change to abs. tolerance for proton weight

parent cbcf9d64
No related branches found
No related tags found
1 merge request!25Visible energy
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment