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
0874af48
Verified
Commit
0874af48
authored
3 years ago
by
Tamas Gal
Browse files
Options
Downloads
Patches
Plain Diff
Fix broken tests due to apdated awkward-API
parent
2afb8e10
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#25086
failed
3 years ago
Stage: test
Stage: coverage
Stage: doc
Stage: release
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_tools.py
+7
-7
7 additions, 7 deletions
tests/test_tools.py
with
7 additions
and
7 deletions
tests/test_tools.py
+
7
−
7
View file @
0874af48
...
...
@@ -609,36 +609,36 @@ class TestIsBitSet(unittest.TestCase):
def
test_is_bit_set_for_awkward_arrays
(
self
):
values
=
ak
.
Array
([
2
,
42
,
4
])
assert
np
.
allclose
([
True
,
True
,
False
],
is_bit_set
(
values
,
1
))
assert
np
.
allclose
([
True
,
True
,
False
],
list
(
is_bit_set
(
values
,
1
))
)
class
TestTriggerMaskChecks
(
unittest
.
TestCase
):
def
test_is_3dshower
(
self
):
assert
np
.
allclose
(
[
True
,
True
,
True
,
True
,
True
,
False
,
False
,
True
,
True
,
True
],
is_3dshower
(
OFFLINE_FILE
.
events
.
trigger_mask
),
list
(
is_3dshower
(
OFFLINE_FILE
.
events
.
trigger_mask
)
)
,
)
assert
np
.
allclose
(
[
True
,
True
,
True
,
True
,
True
,
True
,
True
,
True
,
True
,
False
],
is_3dshower
(
GENHEN_OFFLINE_FILE
.
events
.
trigger_mask
),
list
(
is_3dshower
(
GENHEN_OFFLINE_FILE
.
events
.
trigger_mask
)
)
,
)
def
test_is_mxshower
(
self
):
assert
np
.
allclose
(
[
True
,
True
,
True
,
True
,
True
,
True
,
True
,
True
,
True
,
True
],
is_mxshower
(
OFFLINE_FILE
.
events
.
trigger_mask
),
list
(
is_mxshower
(
OFFLINE_FILE
.
events
.
trigger_mask
)
)
,
)
assert
np
.
allclose
(
[
False
,
False
,
False
,
False
,
False
,
False
,
False
,
False
,
False
,
False
],
is_mxshower
(
GENHEN_OFFLINE_FILE
.
events
.
trigger_mask
),
list
(
is_mxshower
(
GENHEN_OFFLINE_FILE
.
events
.
trigger_mask
)
)
,
)
def
test_is_3dmuon
(
self
):
assert
np
.
allclose
(
[
True
,
True
,
True
,
True
,
True
,
False
,
False
,
True
,
True
,
True
],
is_3dmuon
(
OFFLINE_FILE
.
events
.
trigger_mask
),
list
(
is_3dmuon
(
OFFLINE_FILE
.
events
.
trigger_mask
)
)
,
)
assert
np
.
allclose
(
[
False
,
False
,
False
,
True
,
False
,
False
,
True
,
False
,
True
,
True
],
is_3dmuon
(
GENHEN_OFFLINE_FILE
.
events
.
trigger_mask
),
list
(
is_3dmuon
(
GENHEN_OFFLINE_FILE
.
events
.
trigger_mask
)
)
,
)
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