update float32 to float64

This commit is contained in:
2026-06-08 15:47:25 +08:00
parent ac0de93e31
commit 31d91d6cc7
6 changed files with 10 additions and 10 deletions

View File

@@ -174,7 +174,7 @@ class zmqServer(threading.Thread):
return
# 转置为上位机需要的[50, 通道数]格式
filtered_data = filtered_data.T.astype(np.float32)
filtered_data = filtered_data.T.astype(np.float64)
send_buf = filtered_data.tobytes()
algo_log(f"发送滤波数据,长度: {len(send_buf)}字节, filtered_data.shape: {filtered_data.shape}", level="DEBUG")
self.data_send_queue.put(send_buf)
@@ -292,7 +292,7 @@ class zmqServer(threading.Thread):
return
# 零拷贝解析 + 维度转换
data_np = np.frombuffer(data_bytes, dtype=np.float32)
data_np = np.frombuffer(data_bytes, dtype=np.float64)
data_np = data_np.reshape(self.device_info['frame_points'], self.device_info['channel_nums'])
data_np = data_np.T.astype(np.float64)