From fd06902b082a6b91ceb9db73b9b4af5ba2763325 Mon Sep 17 00:00:00 2001
From: Tamas Gal <tgal@km3net.de>
Date: Tue, 11 Jun 2019 10:16:17 +0200
Subject: [PATCH] Add verbosity

---
 scripts/time_residuals.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/time_residuals.py b/scripts/time_residuals.py
index 9750ffa..677561a 100644
--- a/scripts/time_residuals.py
+++ b/scripts/time_residuals.py
@@ -35,8 +35,10 @@ def main():
     hours = 2
 
     while True:
+        print("Reading data...")
         df = pd.read_csv(args['TIME_RESIDUALS_FILE'])
         df = df[df.timestamp > time.time() - 60 * 60 * hours]
+        print(f" -> number of entries: {len(df)}")
 
         fig, axes = plt.subplots(nrows=6,
                                  ncols=3,
@@ -49,6 +51,7 @@ def main():
             for du in np.unique(df.du):
                 _df = df[df.du == du]
                 t_res = _df[_df.floor == floor].t_res
+                print(f"   DU {du} floor {floor}: {len(t_res)} entries")
                 ax.hist(-t_res,
                         bins=100,
                         histtype='step',
-- 
GitLab