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

Make script future proof for triggered masks

parent 941c4286
No related branches found
No related tags found
No related merge requests found
......@@ -140,8 +140,8 @@ class ZTPlot(kp.Module):
hits = blob['Hits']
hits = self.calib.apply(hits)
n_triggered_dus = len(np.unique(hits[hits.triggered == True].du))
n_triggered_doms = len(np.unique(hits[hits.triggered == True].dom_id))
n_triggered_dus = len(np.unique(hits[hits.triggered > 0].du))
n_triggered_doms = len(np.unique(hits[hits.triggered > 0].dom_id))
if n_triggered_dus < self.min_dus or n_triggered_doms < self.min_doms:
self.log.debug(f"Skipping event with {n_triggered_dus} DUs "
f"and {n_triggered_doms} DOMs.")
......
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