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
No related branches found
Tags v1.0.1
No related merge requests found
......@@ -128,7 +128,6 @@ class PMTRates(kp.Module):
plt.close('all')
def process(self, blob):
print("Got data...")
try:
tmch_data = TMCHData(io.BytesIO(blob['CHData']))
except ValueError:
......@@ -138,6 +137,7 @@ class PMTRates(kp.Module):
dom_id = tmch_data.dom_id
if dom_id not in self.detector.doms:
self.log.error(f"DOM ID {dom_id} not in detector definition!")
return blob
du, floor, _ = self.detector.doms[dom_id]
......
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