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
2a235eed
Commit
2a235eed
authored
5 years ago
by
Johannes Schumann
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of git.km3net.de:km3py/km3io
parents
bfaca9a9
55e87191
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#7926
passed with warnings
5 years ago
Stage: test
Stage: coverage
Stage: doc
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
km3io/daq.py
+17
-0
17 additions, 0 deletions
km3io/daq.py
with
17 additions
and
0 deletions
km3io/daq.py
+
17
−
0
View file @
2a235eed
...
...
@@ -150,6 +150,8 @@ class DAQTimeslices:
TIMESLICE_FRAME_BASKET_CACHE_SIZE
))
self
.
_timeslices
[
stream
.
decode
(
"
ascii
"
)]
=
(
headers
,
superframes
,
hits_buffer
)
setattr
(
self
,
stream
.
decode
(
"
ascii
"
),
DAQTimesliceStream
(
headers
,
superframes
,
hits_buffer
))
def
stream
(
self
,
stream
,
idx
):
ts
=
self
.
_timeslices
[
stream
]
...
...
@@ -163,6 +165,21 @@ class DAQTimeslices:
return
str
(
self
)
class
DAQTimesliceStream
:
def
__init__
(
self
,
headers
,
superframes
,
hits_buffer
):
# self.headers = headers.lazyarray(
# uproot.asjagged(uproot.astable(
# uproot.asdtype(
# np.dtype([('a', 'i4'), ('b', 'i4'), ('c', 'i4'),
# ('d', 'i4'), ('e', 'i4')]))),
# skipbytes=6),
# basketcache=uproot.cache.ThreadSafeArrayCache(
# TIMESLICE_FRAME_BASKET_CACHE_SIZE))
self
.
headers
=
headers
self
.
superframes
=
superframes
self
.
_hits_buffer
=
hits_buffer
class
DAQTimeslice
:
"""
A wrapper for a DAQ timeslice
"""
def
__init__
(
self
,
header
,
superframe
,
hits_buffer
,
idx
,
stream
):
...
...
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