Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
km3io
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
km3py
km3io
Commits
89d0c2e9
Commit
89d0c2e9
authored
4 years ago
by
Tamas Gal
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into '58-uproot4-integration-2'
# Conflicts: # tests/test_tools.py
parents
c7355747
7e16ce69
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!47
Resolve "uproot4 integration"
Pipeline
#16351
failed
4 years ago
Stage: test
Stage: coverage
Stage: doc
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.rst
+7
-0
7 additions, 0 deletions
CHANGELOG.rst
tests/test_tools.py
+16
-16
16 additions, 16 deletions
tests/test_tools.py
with
23 additions
and
16 deletions
CHANGELOG.rst
+
7
−
0
View file @
89d0c2e9
...
...
@@ -3,6 +3,13 @@ Unreleased changes
Version 0
---------
0.18.1 / 2020-12-04
~~~~~~~~~~~~~~~~~~~
* Fixed imports due to the rename of uproot to uproot3, uproot4 to uproot,
awkward to awkward0 and awkward1 to awkward
* Notice: the ``best_track*()`` functions are currently broken due to changes in
awkward which has not been fixed yet
0.18.0 / 2020-11-12
~~~~~~~~~~~~~~~~~~~
* A new tool ``km3io.tools.is_cc()`` has been added which can be used to
...
...
This diff is collapsed.
Click to expand it.
tests/test_tools.py
+
16
−
16
View file @
89d0c2e9
...
...
@@ -109,10 +109,10 @@ class TestBestTrackSelection(unittest.TestCase):
assert
len
(
best
)
==
10
assert
best
.
rec_stages
[
0
].
tolist
()
==
[
1
,
3
,
5
,
4
]
assert
best
.
rec_stages
[
1
].
tolist
()
==
[
1
,
3
,
5
,
4
]
assert
best
.
rec_stages
[
2
].
tolist
()
==
[
1
,
3
,
5
,
4
]
assert
best
.
rec_stages
[
3
].
tolist
()
==
[
1
,
3
,
5
,
4
]
assert
best
.
rec_stages
[
0
].
tolist
()
==
[
[
1
,
3
,
5
,
4
]
]
assert
best
.
rec_stages
[
1
].
tolist
()
==
[
[
1
,
3
,
5
,
4
]
]
assert
best
.
rec_stages
[
2
].
tolist
()
==
[
[
1
,
3
,
5
,
4
]
]
assert
best
.
rec_stages
[
3
].
tolist
()
==
[
[
1
,
3
,
5
,
4
]
]
# test with a shorter set of rec_stages
best2
=
best_track
(
self
.
events
.
tracks
,
stages
=
{
1
,
3
})
...
...
@@ -128,20 +128,20 @@ class TestBestTrackSelection(unittest.TestCase):
assert
len
(
best
)
==
10
assert
best
.
rec_stages
[
0
].
tolist
()
==
[
1
,
3
,
5
,
4
]
assert
best
.
rec_stages
[
1
].
tolist
()
==
[
1
,
3
,
5
,
4
]
assert
best
.
rec_stages
[
2
].
tolist
()
==
[
1
,
3
,
5
,
4
]
assert
best
.
rec_stages
[
3
].
tolist
()
==
[
1
,
3
,
5
,
4
]
assert
best
.
rec_stages
[
0
].
tolist
()
==
[
[
1
,
3
,
5
,
4
]
]
assert
best
.
rec_stages
[
1
].
tolist
()
==
[
[
1
,
3
,
5
,
4
]
]
assert
best
.
rec_stages
[
2
].
tolist
()
==
[
[
1
,
3
,
5
,
4
]
]
assert
best
.
rec_stages
[
3
].
tolist
()
==
[
[
1
,
3
,
5
,
4
]
]
# test with shorter stages
best2
=
best_track
(
self
.
events
.
tracks
,
startend
=
(
1
,
3
))
assert
len
(
best2
)
==
10
assert
best2
.
rec_stages
[
0
].
tolist
()
==
[
1
,
3
]
assert
best2
.
rec_stages
[
1
].
tolist
()
==
[
1
,
3
]
assert
best2
.
rec_stages
[
2
].
tolist
()
==
[
1
,
3
]
assert
best2
.
rec_stages
[
3
].
tolist
()
==
[
1
,
3
]
assert
best2
.
rec_stages
[
0
].
tolist
()
==
[
[
1
,
3
]
]
assert
best2
.
rec_stages
[
1
].
tolist
()
==
[
[
1
,
3
]
]
assert
best2
.
rec_stages
[
2
].
tolist
()
==
[
[
1
,
3
]
]
assert
best2
.
rec_stages
[
3
].
tolist
()
==
[
[
1
,
3
]
]
# test the importance of start as a real start of rec_stages
best3
=
best_track
(
self
.
events
.
tracks
,
startend
=
(
0
,
3
))
...
...
@@ -288,10 +288,10 @@ class TestBestJmuon(unittest.TestCase):
assert
len
(
best
)
==
10
assert
best
.
rec_stages
[
0
].
tolist
()
==
[
1
,
3
,
5
,
4
]
assert
best
.
rec_stages
[
1
].
tolist
()
==
[
1
,
3
,
5
,
4
]
assert
best
.
rec_stages
[
2
].
tolist
()
==
[
1
,
3
,
5
,
4
]
assert
best
.
rec_stages
[
3
].
tolist
()
==
[
1
,
3
,
5
,
4
]
assert
best
.
rec_stages
[
0
].
tolist
()
==
[
[
1
,
3
,
5
,
4
]
]
assert
best
.
rec_stages
[
1
].
tolist
()
==
[
[
1
,
3
,
5
,
4
]
]
assert
best
.
rec_stages
[
2
].
tolist
()
==
[
[
1
,
3
,
5
,
4
]
]
assert
best
.
rec_stages
[
3
].
tolist
()
==
[
[
1
,
3
,
5
,
4
]
]
assert
best
.
lik
[
0
]
==
ak
.
max
(
OFFLINE_FILE
.
events
.
tracks
.
lik
[
0
])
assert
best
.
lik
[
1
]
==
ak
.
max
(
OFFLINE_FILE
.
events
.
tracks
.
lik
[
1
])
...
...
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