Skip to content
Snippets Groups Projects
Commit 65819b65 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Improve debug output

parent bfbc493d
No related branches found
No related tags found
No related merge requests found
......@@ -143,7 +143,6 @@ class ZTPlot(kp.Module):
self.create_plot(event_info, hits)
def create_plot(self, event_info, hits):
print(self.__class__.__name__ + ": updating plot.")
trigger_mask = event_info.trigger_mask[0]
det_id = event_info.det_id[0]
......@@ -161,9 +160,11 @@ class ZTPlot(kp.Module):
'n_hits'] or n_triggered_hits > self.records["n_triggered_hits"]
if not is_new_record or (utc_timestamp - self.last_plot_time) < 60:
print("Skipping plot...")
self.log.debug("Skipping plot...")
return
self.cprint(self.__class__.__name__ + ": updating plot.")
dus = set(hits.du)
n_dus = len(dus)
......
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