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
7d8f656d
Commit
7d8f656d
authored
5 years ago
by
Johannes Schumann
Browse files
Options
Downloads
Patches
Plain Diff
Apply suggestion to km3io/daq.py
parent
1c0b1dc3
No related branches found
No related tags found
1 merge request
!7
Summaryslice status
Pipeline
#7969
passed with warnings
5 years ago
Stage: test
Stage: coverage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
km3io/daq.py
+7
-1
7 additions, 1 deletion
km3io/daq.py
with
7 additions
and
1 deletion
km3io/daq.py
+
7
−
1
View file @
7d8f656d
...
...
@@ -45,7 +45,13 @@ def unpack_bits(value):
def
get_channel_flags
(
value
):
"""
Returns the hrv/fifo flags for the PMT channels (hrv/fifo)
"""
"""
Returns the hrv/fifo flags for the PMT channels (hrv/fifo)
Parameters
----------
value : int32
The integer value to be parsed.
"""
channel_bits
=
np
.
bitwise_and
(
value
,
0x3FFFFFFF
)
flags
=
unpack_bits
(
channel_bits
)
return
np
.
flip
(
flags
,
axis
=
1
)[:,
:
31
]
...
...
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