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

Add error when dom is not in detector

parent fa2a6da0
Branches
Tags v1.0.1
No related merge requests found
...@@ -128,7 +128,6 @@ class PMTRates(kp.Module): ...@@ -128,7 +128,6 @@ class PMTRates(kp.Module):
plt.close('all') plt.close('all')
def process(self, blob): def process(self, blob):
print("Got data...")
try: try:
tmch_data = TMCHData(io.BytesIO(blob['CHData'])) tmch_data = TMCHData(io.BytesIO(blob['CHData']))
except ValueError: except ValueError:
...@@ -138,6 +137,7 @@ class PMTRates(kp.Module): ...@@ -138,6 +137,7 @@ class PMTRates(kp.Module):
dom_id = tmch_data.dom_id dom_id = tmch_data.dom_id
if dom_id not in self.detector.doms: if dom_id not in self.detector.doms:
self.log.error(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]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment