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
32ad7d6f
Commit
32ad7d6f
authored
2 years ago
by
Johannes Schumann
Browse files
Options
Downloads
Patches
Plain Diff
Update test
parent
8fda8839
No related branches found
No related tags found
1 merge request
!31
Resolve "Bjorken Y"
Pipeline
#27868
failed
2 years ago
Stage: test
Stage: coverage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
km3buu/tests/test_output.py
+7
-3
7 additions, 3 deletions
km3buu/tests/test_output.py
with
7 additions
and
3 deletions
km3buu/tests/test_output.py
+
7
−
3
View file @
32ad7d6f
...
...
@@ -37,6 +37,7 @@ except ModuleNotFoundError:
class
TestXSection
(
unittest
.
TestCase
):
def
test_xsection_all
(
self
):
filename
=
join
(
TESTDATA_DIR
,
XSECTION_FILENAMES
[
"
all
"
])
xsection
=
read_nu_abs_xsection
(
filename
)
...
...
@@ -47,6 +48,7 @@ class TestXSection(unittest.TestCase):
class
TestGiBUUOutput
(
unittest
.
TestCase
):
def
setup_class
(
self
):
self
.
output
=
GiBUUOutput
(
TESTDATA_DIR
)
...
...
@@ -91,6 +93,7 @@ class TestGiBUUOutput(unittest.TestCase):
@pytest.mark.skipif
(
not
KM3NET_LIB_AVAILABLE
,
reason
=
"
KM3NeT dataformat required
"
)
class
TestOfflineFile
(
unittest
.
TestCase
):
def
setUp
(
self
):
output
=
GiBUUOutput
(
TESTDATA_DIR
)
datafile
=
NamedTemporaryFile
(
suffix
=
"
.root
"
)
...
...
@@ -133,7 +136,7 @@ class TestOfflineFile(unittest.TestCase):
# Bx
np
.
testing
.
assert_almost_equal
(
evt
.
w2list
[
7
],
0.35479262672400624
)
# By
np
.
testing
.
assert_almost_equal
(
evt
.
w2list
[
8
],
0.8
167222969153614
)
np
.
testing
.
assert_almost_equal
(
evt
.
w2list
[
8
],
0.8
203215908456797
)
# iChannel
np
.
testing
.
assert_equal
(
evt
.
w2list
[
9
],
3
)
# CC/NC
...
...
@@ -145,6 +148,7 @@ class TestOfflineFile(unittest.TestCase):
@pytest.mark.skipif
(
not
KM3NET_LIB_AVAILABLE
,
reason
=
"
KM3NeT dataformat required
"
)
class
TestMultiFileOutput
(
unittest
.
TestCase
):
def
setUp
(
self
):
output
=
GiBUUOutput
(
TESTDATA_DIR
)
datafile
=
NamedTemporaryFile
(
suffix
=
"
.root
"
)
...
...
@@ -190,7 +194,7 @@ class TestMultiFileOutput(unittest.TestCase):
# Bx
np
.
testing
.
assert_almost_equal
(
evt
.
w2list
[
7
],
0.35479262672400624
)
# By
np
.
testing
.
assert_almost_equal
(
evt
.
w2list
[
8
],
0.8
167222969153614
)
np
.
testing
.
assert_almost_equal
(
evt
.
w2list
[
8
],
0.8
203215908456797
)
# iChannel
np
.
testing
.
assert_equal
(
evt
.
w2list
[
9
],
3
)
# CC/NC
...
...
@@ -221,7 +225,7 @@ class TestMultiFileOutput(unittest.TestCase):
# Bx
np
.
testing
.
assert_almost_equal
(
evt
.
w2list
[
7
],
0.35479262672400624
)
# By
np
.
testing
.
assert_almost_equal
(
evt
.
w2list
[
8
],
0.8
167222969153614
)
np
.
testing
.
assert_almost_equal
(
evt
.
w2list
[
8
],
0.8
203215908456797
)
# iChannel
np
.
testing
.
assert_equal
(
evt
.
w2list
[
9
],
3
)
# CC/NC
...
...
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