beta psd return

This commit is contained in:
Ivey Song
2026-06-10 17:53:01 +08:00
parent f21367bc20
commit 1bbe84eb56
4 changed files with 42 additions and 10 deletions

View File

@@ -170,6 +170,7 @@ def run_headless():
time.sleep(1) # 等待连接建立
client.send_data('decoderClass', 'mi')
time.sleep(4) # 等待 zmqServer 排空启动积压包datamock 提前连接会积压 ~3s 数据)
# MI_IntervalEpoch = [0.5, 4.5]trial时长 = 4.5-0.5 = 4.0s
_mi_iv = ast.literal_eval(IniRead('system', 'MI_IntervalEpoch')) # [0.5, 4.5]
@@ -222,7 +223,7 @@ def run_headless():
time.sleep(0.5) # ding 提示后等待
client.send_data('train', 0)
time.sleep(train_time + epoch_wait) # 等待刺激时间 + epoch 完成时间
time.sleep(train_time + 0.2) # 等待刺激时间 + epoch 完成时间
trained += 1
client.send_data('rest', 0)
@@ -231,7 +232,7 @@ def run_headless():
# 空闲态样本采集train 1label=2
print(f"\n[Train] 空闲态采集 (train 1) trained={trained}")
client.send_data('train', 1)
time.sleep(train_time + epoch_wait) # 等待刺激时间 + epoch 完成时间
time.sleep(train_time + 0.2) # 等待刺激时间 + epoch 完成时间
trained += 1
client.send_data('rest', 0)