diff --git a/km3buu/tests/test_output.py b/km3buu/tests/test_output.py index ed85fd16c845b42356f82309baaa5bbf3010898c..3a3809b82020f785685f531cce6ef3dbd220d750 100644 --- a/km3buu/tests/test_output.py +++ b/km3buu/tests/test_output.py @@ -79,6 +79,11 @@ class TestGiBUUOutput(unittest.TestCase): w2[:3], [2.42100575e-06, 1.14490671e-08, 3.59246902e-05], decimal=5) + def test_global_generation_weight(self): + self.assertAlmostEqual(self.output.global_generation_weight(4 * np.pi), + 2511.13458, + places=2) + @pytest.mark.skipif(not KM3NET_LIB_AVAILABLE, reason="KM3NeT dataformat required")