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
Merge requests
!28
Draft: Resolve "Muon Propagation"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Draft: Resolve "Muon Propagation"
8-muon-propagation
into
master
Overview
0
Commits
7
Pipelines
9
Changes
5
Closed
Johannes Schumann
requested to merge
8-muon-propagation
into
master
3 years ago
Overview
0
Commits
7
Pipelines
9
Changes
1
Expand
Closes
#8 (closed)
0
0
Merge request reports
Compare
version 2
version 8
6694b50b
3 years ago
version 7
98167aa0
3 years ago
version 6
f5bd984b
3 years ago
version 5
73572102
3 years ago
version 4
743ad13d
3 years ago
version 3
03b3dada
3 years ago
version 2
8efc4fd0
3 years ago
version 1
b44f7916
3 years ago
master (base)
and
version 3
latest version
6694b50b
7 commits,
2 years ago
version 8
6694b50b
7 commits,
3 years ago
version 7
98167aa0
6 commits,
3 years ago
version 6
f5bd984b
5 commits,
3 years ago
version 5
73572102
4 commits,
3 years ago
version 4
743ad13d
4 commits,
3 years ago
version 3
03b3dada
3 commits,
3 years ago
version 2
8efc4fd0
2 commits,
3 years ago
version 1
b44f7916
1 commit,
3 years ago
Show latest version
1 file
+
7
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
km3buu/tests/test_propagation.py
+
7
−
2
Options
@@ -17,16 +17,18 @@ import uproot
import
pytest
from
os.path
import
abspath
,
join
,
dirname
from
thepipe.logger
import
get_logger
from
scipy.spatial.transform
import
Rotation
import
proposal
as
pp
import
awkward
as
ak
from
km3buu.propagation
import
propagate_lepton
from
km3buu.geometry
import
CanVolume
pp
.
RandomGenerator
.
get
().
set_seed
(
1234
)
@pytest.mark.skip
(
reason
=
"
CI boost lib problem
"
)
#
@pytest.mark.skip(reason="CI boost lib problem")
class
TestTauPropagation
(
unittest
.
TestCase
):
def
setUp
(
self
):
data
=
ak
.
Array
({
@@ -47,7 +49,10 @@ class TestTauPropagation(unittest.TestCase):
4.743161507744377
,
23.096499191566885
]
})
self
.
sec
=
propagate_lepton
(
data
,
15
)
volume
=
CanVolume
()
vtx_pos
=
np
.
zeros
((
5
,
3
))
vtx_rot
=
[
Rotation
.
from_euler
(
"
yz
"
,
[
0
,
0
])
for
i
in
range
(
5
)]
self
.
sec
=
propagate_lepton
(
data
,
15
,
volume
,
vtx_pos
,
vtx_rot
)
def
test_secondary_momenta
(
self
):
np
.
testing
.
assert_array_almost_equal
(
np
.
array
(
self
.
sec
[
0
].
E
),
Loading