This commit is contained in:
2026-06-06 17:08:09 +08:00
parent 9c9b522443
commit d576cae3c0
5 changed files with 34 additions and 13 deletions

View File

@@ -5,6 +5,7 @@
import numpy as np
from scipy import signal
import threading
from logs.log import algo_log
class ParadigmRingBuffer:
def __init__(self, n_chan, n_points):
@@ -19,7 +20,8 @@ class ParadigmRingBuffer:
## append buffer and update current pointer
def appendBuffer(self, data):
if self.nUpdate == self.n_points:
raise Exception("Buffer is full")
# raise Exception("Buffer is full")
algo_log("Buffer is full", record_once=True)
n = data.shape[1]