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

Fix dataformat field definitions

parent 0e36de8c
No related branches found
No related tags found
No related merge requests found
Pipeline #24872 canceled
...@@ -37,7 +37,6 @@ except ModuleNotFoundError: ...@@ -37,7 +37,6 @@ except ModuleNotFoundError:
class TestXSection(unittest.TestCase): class TestXSection(unittest.TestCase):
def test_xsection_all(self): def test_xsection_all(self):
filename = join(TESTDATA_DIR, XSECTION_FILENAMES["all"]) filename = join(TESTDATA_DIR, XSECTION_FILENAMES["all"])
xsection = read_nu_abs_xsection(filename) xsection = read_nu_abs_xsection(filename)
...@@ -48,7 +47,6 @@ class TestXSection(unittest.TestCase): ...@@ -48,7 +47,6 @@ class TestXSection(unittest.TestCase):
class TestGiBUUOutput(unittest.TestCase): class TestGiBUUOutput(unittest.TestCase):
def setup_class(self): def setup_class(self):
self.output = GiBUUOutput(TESTDATA_DIR) self.output = GiBUUOutput(TESTDATA_DIR)
...@@ -93,7 +91,6 @@ class TestGiBUUOutput(unittest.TestCase): ...@@ -93,7 +91,6 @@ class TestGiBUUOutput(unittest.TestCase):
@pytest.mark.skipif(not KM3NET_LIB_AVAILABLE, @pytest.mark.skipif(not KM3NET_LIB_AVAILABLE,
reason="KM3NeT dataformat required") reason="KM3NeT dataformat required")
class TestAANET(unittest.TestCase): class TestAANET(unittest.TestCase):
def setUp(self): def setUp(self):
output = GiBUUOutput(TESTDATA_DIR) output = GiBUUOutput(TESTDATA_DIR)
datafile = NamedTemporaryFile(suffix=".root") datafile = NamedTemporaryFile(suffix=".root")
...@@ -138,8 +135,8 @@ class TestAANET(unittest.TestCase): ...@@ -138,8 +135,8 @@ class TestAANET(unittest.TestCase):
# By # By
np.testing.assert_almost_equal(evt.w2list[8], 0.8167222969153614) np.testing.assert_almost_equal(evt.w2list[8], 0.8167222969153614)
# iChannel # iChannel
np.testing.assert_equal(evt.w2list[9], 34) np.testing.assert_equal(evt.w2list[9], 3)
# CC/NC # CC/NC
np.testing.assert_equal(evt.w2list[10], 2) np.testing.assert_equal(evt.w2list[10], 2)
# GiBUU weight # GiBUU weight
np.testing.assert_almost_equal(evt.w2list[19], 0.004062418521597373) np.testing.assert_almost_equal(evt.w2list[23], 0.004062418521597373)
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