Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
KM3BUU
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
simulation
KM3BUU
Commits
2d109aa7
Commit
2d109aa7
authored
3 years ago
by
Johannes Schumann
Browse files
Options
Downloads
Patches
Plain Diff
Fix dataformat field definitions
parent
0e36de8c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#24872
canceled
3 years ago
Stage: test
Stage: coverage
Stage: doc
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
km3buu/tests/test_output.py
+2
-5
2 additions, 5 deletions
km3buu/tests/test_output.py
with
2 additions
and
5 deletions
km3buu/tests/test_output.py
+
2
−
5
View file @
2d109aa7
...
...
@@ -37,7 +37,6 @@ except ModuleNotFoundError:
class
TestXSection
(
unittest
.
TestCase
):
def
test_xsection_all
(
self
):
filename
=
join
(
TESTDATA_DIR
,
XSECTION_FILENAMES
[
"
all
"
])
xsection
=
read_nu_abs_xsection
(
filename
)
...
...
@@ -48,7 +47,6 @@ class TestXSection(unittest.TestCase):
class
TestGiBUUOutput
(
unittest
.
TestCase
):
def
setup_class
(
self
):
self
.
output
=
GiBUUOutput
(
TESTDATA_DIR
)
...
...
@@ -93,7 +91,6 @@ class TestGiBUUOutput(unittest.TestCase):
@pytest.mark.skipif
(
not
KM3NET_LIB_AVAILABLE
,
reason
=
"
KM3NeT dataformat required
"
)
class
TestAANET
(
unittest
.
TestCase
):
def
setUp
(
self
):
output
=
GiBUUOutput
(
TESTDATA_DIR
)
datafile
=
NamedTemporaryFile
(
suffix
=
"
.root
"
)
...
...
@@ -138,8 +135,8 @@ class TestAANET(unittest.TestCase):
# By
np
.
testing
.
assert_almost_equal
(
evt
.
w2list
[
8
],
0.8167222969153614
)
# iChannel
np
.
testing
.
assert_equal
(
evt
.
w2list
[
9
],
3
4
)
np
.
testing
.
assert_equal
(
evt
.
w2list
[
9
],
3
)
# CC/NC
np
.
testing
.
assert_equal
(
evt
.
w2list
[
10
],
2
)
# GiBUU weight
np
.
testing
.
assert_almost_equal
(
evt
.
w2list
[
19
],
0.004062418521597373
)
np
.
testing
.
assert_almost_equal
(
evt
.
w2list
[
23
],
0.004062418521597373
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment