Support for various app and slic wrapper

This commit is contained in:
2023-06-13 14:18:09 +02:00
parent f22a17852c
commit dc5df0ca2a
13 changed files with 488 additions and 31 deletions

View File

@ -11,7 +11,7 @@ class SpectralAnalysis:
"""
def __init__(self):
self.bs = BSCache()
self.bs = BSCache(100000,10000) # 100 second timeout, size for 100 second data taken
self.bs.stop()
self.channel = ''
@ -35,8 +35,7 @@ class SpectralAnalysis:
self.bs.pt.running.clear() # for some reason I have to
def flush(self):
with self.bs.pt.queue.mutex:
self.bs.pt.queue.queue.clear()
self.bs.flush()
def read(self):
data=self.bs.__next__()