From b8f5529f591f21bbb285cda09f08c9a84ea9fa79 Mon Sep 17 00:00:00 2001 From: Tamas Gal <tgal@km3net.de> Date: Fri, 4 Oct 2019 11:39:55 +0200 Subject: [PATCH] Fix future warning --- scripts/ahrs_calibration.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/ahrs_calibration.py b/scripts/ahrs_calibration.py index 61d3a09..2590d1e 100755 --- a/scripts/ahrs_calibration.py +++ b/scripts/ahrs_calibration.py @@ -32,6 +32,9 @@ import matplotlib.pyplot as plt import matplotlib.dates as md import seaborn as sns +from pandas.plotting import register_matplotlib_converters +register_matplotlib_converters() + import km3pipe as kp from km3pipe.io.daq import TMCHData from km3modules.ahrs import fit_ahrs, get_latest_ahrs_calibration @@ -43,6 +46,7 @@ class CalibrateAHRS(kp.Module): def configure(self): self.plots_path = self.require('plots_path') det_id = self.require('det_id') + self.time_range = self.get('time_range', default=24 * 3) # hours self.detector = kp.hardware.Detector(det_id=det_id) self.dus = set() @@ -52,7 +56,7 @@ class CalibrateAHRS(kp.Module): self.cuckoo_log = kp.time.Cuckoo(10, print) self.data = {} - self.queue_size = 50000 + self.queue_size = 100000 self.lock = threading.Lock() self.index = 0 -- GitLab