From ecdb8550963c03bc8be67390a30cd6b9968e47d7 Mon Sep 17 00:00:00 2001
From: Tamas Gal <tgal@km3net.de>
Date: Fri, 28 Jun 2019 15:01:01 +0200
Subject: [PATCH] Add debug

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

diff --git a/scripts/pmt_rates.py b/scripts/pmt_rates.py
index ff9c9e4..51b4a07 100755
--- a/scripts/pmt_rates.py
+++ b/scripts/pmt_rates.py
@@ -146,6 +146,9 @@ class PMTRates(kp.Module):
 
         y_base = (floor - 1) * 31
 
+        if np.random.rand() > 0.90:
+            print(f"Rates for DOM ID {dom_id} DU {du}: {tmch_data.pmt_rates}")
+
         for channel_id, rate in enumerate(tmch_data.pmt_rates):
             idx = y_base + kp.hardware.ORDERED_PMT_IDS[channel_id]
             with self.lock:
-- 
GitLab