去除“屏蔽开机初始化”

This commit is contained in:
zhangshixiang
2026-01-19 15:14:20 +08:00
parent 6f600b4fc7
commit 03f7f44c77

View File

@@ -442,7 +442,7 @@ class PRCXI9300TubeRack(TubeRack):
# 清理临时数据 # 清理临时数据
del self._temp_ordering del self._temp_ordering
def load_state(self, state: Dict[str, Any]) -> None: def load_state(self, state: Dict[str, Any]) -> None:
"""从给定的状态加载工作台信息。""" """从给定的状态加载工作台信息。"""
# super().load_state(state) # super().load_state(state)
@@ -1160,8 +1160,7 @@ class PRCXI9300Backend(LiquidHandlerBackend):
protocol_name = f"protocol_{time.time()}" protocol_name = f"protocol_{time.time()}"
self.protocol_name = protocol_name self.protocol_name = protocol_name
self.steps_todo_list = [] self.steps_todo_list = []
matrices = self.api_client.matrix_by_id("5de524d0-3f95-406c-86dd-f83626ebc7cb")["WorkTablets"]
if not len(self.matrix_id): if not len(self.matrix_id):
self.matrix_id = str(uuid.uuid4()) self.matrix_id = str(uuid.uuid4())
@@ -1224,17 +1223,17 @@ class PRCXI9300Backend(LiquidHandlerBackend):
print("PRCXI9300 error code cleared.") print("PRCXI9300 error code cleared.")
self.api_client.call("IAutomation", "Stop") self.api_client.call("IAutomation", "Stop")
# 执行重置 # 执行重置
# print("Starting PRCXI9300 reset...") print("Starting PRCXI9300 reset...")
# self.api_client.call("IAutomation", "Reset") self.api_client.call("IAutomation", "Reset")
# # 检查重置状态并等待完成 # 检查重置状态并等待完成
# while not self.is_reset_ok: while not self.is_reset_ok:
# print("Waiting for PRCXI9300 to reset...") print("Waiting for PRCXI9300 to reset...")
# if hasattr(self, '_ros_node') and self._ros_node is not None: if hasattr(self, '_ros_node') and self._ros_node is not None:
# await self._ros_node.sleep(1) await self._ros_node.sleep(1)
# else: else:
# await asyncio.sleep(1) await asyncio.sleep(1)
# print("PRCXI9300 reset successfully.") print("PRCXI9300 reset successfully.")
self.api_client.update_clamp_jaw_position(self.matrix_id, self.plate_positions) self.api_client.update_clamp_jaw_position(self.matrix_id, self.plate_positions)