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

Update parameter pattern matching

parent c646e09c
No related branches found
No related tags found
No related merge requests found
Pipeline #60530 passed
...@@ -62,7 +62,7 @@ class DOMActivityPlotter(kp.Module): ...@@ -62,7 +62,7 @@ class DOMActivityPlotter(kp.Module):
timestamp = summaryslice.header.time_stamp timestamp = summaryslice.header.time_stamp
for dom_id, _ in summaryslice.summary_frames.items(): for dom_id, _ in summaryslice.summary_frames.items():
du, dom, _ = self.detector.doms[dom_id] du, dom, *_ = self.detector.doms[dom_id]
self.last_activity[(du, dom)] = timestamp self.last_activity[(du, dom)] = timestamp
self.cuckoo.msg() self.cuckoo.msg()
......
...@@ -64,7 +64,7 @@ class DOMRates(kp.Module): ...@@ -64,7 +64,7 @@ class DOMRates(kp.Module):
summaryslice = blob['RawSummaryslice'] summaryslice = blob['RawSummaryslice']
self.rates = {} # TODO: review this hack self.rates = {} # TODO: review this hack
for dom_id, rates in summaryslice.summary_frames.items(): for dom_id, rates in summaryslice.summary_frames.items():
du, dom, _ = self.detector.doms[dom_id] du, dom, *_ = self.detector.doms[dom_id]
self.rates[(du, dom)] = np.sum(rates) / 1000 self.rates[(du, dom)] = np.sum(rates) / 1000
self.cuckoo.msg() self.cuckoo.msg()
......
...@@ -163,7 +163,7 @@ class PMTRates(kp.Module): ...@@ -163,7 +163,7 @@ class PMTRates(kp.Module):
self.log.debug(f"DOM ID {dom_id} not in detector definition!") self.log.debug(f"DOM ID {dom_id} not in detector definition!")
return blob return blob
du, floor, _ = self.detector.doms[dom_id] du, floor, *_ = self.detector.doms[dom_id]
if du != self.du: if du != self.du:
return blob return blob
......
...@@ -139,7 +139,7 @@ class TriggeredHits(kp.Module): ...@@ -139,7 +139,7 @@ class TriggeredHits(kp.Module):
label: str label: str
title: str title: str
""" """
x, y, _ = zip(*detector.doms.values()) x, y, *_ = zip(*detector.doms.values())
m_size = 260 m_size = 260
scatter_args = { scatter_args = {
......
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