Skip to content
Snippets Groups Projects

Weights update

Merged Johannes Schumann requested to merge weights into master
Files
2
@@ -76,7 +76,7 @@ class TestGiBUUOutput(unittest.TestCase):
def test_w2weights(self):
w2 = self.output.w2weights(123.0, 2.6e28, 4 * np.pi)
np.testing.assert_array_almost_equal(
w2[:3], [7.64011311e+01, 3.61305080e-01, 1.13369700e+03],
w2[:3], [2.42100575e-06, 1.14490671e-08, 3.59246902e-05],
decimal=5)
@@ -130,3 +130,5 @@ class TestAANET(unittest.TestCase):
np.testing.assert_equal(evt.w2list[9], 34)
# CC/NC
np.testing.assert_equal(evt.w2list[10], 2)
# GiBUU weight
np.testing.assert_almost_equal(evt.w2list[19], 0.8167222969153614)
Loading