Skip to content
Snippets Groups Projects
Commit 27528ef1 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Only read every timeslice stream once

parent bf80dfd4
No related branches found
No related tags found
No related merge requests found
......@@ -129,10 +129,9 @@ class DAQTimeslices:
def _read_streams(self):
"""Read the L0, L1, L2 and SN streams if available"""
streams = [
streams = set(
s.split(b"KM3NET_TIMESLICE_")[1].split(b';')[0]
for s in self.fobj.keys() if b"KM3NET_TIMESLICE_" in s
]
for s in self.fobj.keys() if b"KM3NET_TIMESLICE_" in s)
for stream in streams:
tree = self.fobj[b'KM3NET_TIMESLICE_' +
stream][b'KM3NETDAQ::JDAQTimeslice']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment