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

Merge branch 'master' of git.km3net.de:km3py/km3mon

parents f89a32ce 44986a9f
No related branches found
No related tags found
No related merge requests found
...@@ -57,7 +57,7 @@ class CalibrateAHRS(kp.Module): ...@@ -57,7 +57,7 @@ class CalibrateAHRS(kp.Module):
self.cuckoo_log = kp.time.Cuckoo(10, print) self.cuckoo_log = kp.time.Cuckoo(10, print)
self.data = {} self.data = {}
self.queue_size = 100000 self.queue_size = 5000
self.lock = threading.Lock() self.lock = threading.Lock()
self.index = 0 self.index = 0
...@@ -108,8 +108,10 @@ class CalibrateAHRS(kp.Module): ...@@ -108,8 +108,10 @@ class CalibrateAHRS(kp.Module):
def create_plot(self): def create_plot(self):
print(self.__class__.__name__ + ": updating plot.") print(self.__class__.__name__ + ": updating plot.")
# xfmt = md.DateFormatter('%Y-%m-%d %H:%M') if self.time_range > 24:
xfmt = md.DateFormatter('%H:%M') xfmt = md.DateFormatter('%Y-%m-%d %H:%M')
else:
xfmt = md.DateFormatter('%H:%M')
xlim = (datetime.utcfromtimestamp(time.time() - xlim = (datetime.utcfromtimestamp(time.time() -
self.time_range * 60 * 60), self.time_range * 60 * 60),
datetime.utcnow()) datetime.utcnow())
......
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