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

Cleanup

parent c6a55d2a
No related branches found
No related tags found
No related merge requests found
Pipeline #602 failed
......@@ -44,7 +44,7 @@ VERSION = "1.0"
log = kp.logger.logging.getLogger("PMTrates")
class PMTRates(kp.Module):
class PMTHRV(kp.Module):
def configure(self):
self.detector = self.require("detector")
self.du = self.require("du")
......@@ -107,7 +107,7 @@ class PMTRates(kp.Module):
ax.imshow(m, origin='lower', interpolation='none')
ax.set_title("HRV Ratios (Monitoring Channel) for DetID-{} DU-{}\n"
"PMTs ordered from top to bottom - {}"
.format(self.det_id, self.du, datetime.utcnow()))
.format(self.detector.det_id, self.du, datetime.utcnow()))
ax.set_xlabel("UTC time [{}s/px]".format(interval))
plt.yticks([i*31 for i in range(18)],
["Floor {}".format(f) for f in range(1, 19)])
......@@ -169,7 +169,7 @@ def main():
tags='IO_MONIT',
timeout=60*60*24*7,
max_queue=2000)
pipe.attach(PMTRates,
pipe.attach(PMTHRV,
detector=detector,
du=du,
interval=interval,
......
......@@ -110,7 +110,7 @@ class PMTRates(kp.Module):
ax.set_title("Mean PMT Rates (Monitoring Channel) for DetID-{} DU-{} "
"- colours from 5kHz to 15kHz\n"
"PMTs ordered from top to bottom - {}"
.format(self.det_id, self.du, datetime.utcnow()))
.format(self.detector.det_id, self.du, datetime.utcnow()))
ax.set_xlabel("UTC time [{}s/px]".format(interval))
plt.yticks([i*31 for i in range(18)],
["Floor {}".format(f) for f in range(1, 19)])
......
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