From eb911422a0130be3ce70377b6cd8c47cd35850c5 Mon Sep 17 00:00:00 2001 From: Tamas Gal <tgal@km3net.de> Date: Mon, 11 Mar 2019 23:58:21 +0100 Subject: [PATCH] Fix skip condition --- scripts/ztplot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ztplot.py b/scripts/ztplot.py index e7ec5c5..11a8628 100755 --- a/scripts/ztplot.py +++ b/scripts/ztplot.py @@ -96,8 +96,8 @@ class ZTPlot(Module): hits = self.calib.apply(hits) event_info = blob['EventInfo'] - n_triggered_dus = np.unique(hits[hits.triggered == True].du) - if n_triggered_dus < self.min_dus: + triggered_dus = np.unique(hits[hits.triggered == True].du) + if len(triggered_dus) < self.min_dus: print("Skipping...") return blob -- GitLab