replace print with algo_log

This commit is contained in:
2026-06-10 16:04:02 +08:00
parent 43adc6fb42
commit ba4ae92647
7 changed files with 33 additions and 33 deletions

View File

@@ -14,8 +14,8 @@ from torch.autograd import Variable
# from Device.SunnyLinker import SunnyLinker64
from SSMVEP.algorithm.tdca import TDCA
from SSMVEP.algorithm.base import generate_cca_references
from concentration.algorithm.calculate_focus import Calculate
from blinkdetection.algorithm.eye_detection import blink_detection
# from concentration.algorithm.calculate_focus import Calculate
# from blinkdetection.algorithm.eye_detection import blink_detection
from Zmq.zmqServer import zmqServer
from Zmq.zmqClient import zmqClient
from MI.Algorithm.conformer_2class import onlineTrain
@@ -425,7 +425,7 @@ class Decoder_main(threading.Thread):
algo_log(f"MI运动意图识别: {y_pred}")
self.zmqServer.broadcast_message('paradigm', int(y_pred.item()))
end = time.time()
print(f'发送给界面完成,耗时{end - start:.3f}s。')
algo_log(f'MI发送给界面完成,耗时{end - start:.3f}s。')
else: # 休息状态
if self.zmqServer.paradigmBuffer.GetDataLenCount() < 25:
time.sleep(0.005)