fix: workstation handlers and vessel_id parsing

This commit is contained in:
Junhan Chang
2025-08-04 10:24:42 +08:00
parent a66369e2c3
commit 46aa7a7bd2
3 changed files with 10 additions and 6 deletions

View File

@@ -1,6 +1,8 @@
import networkx as nx
from typing import List, Dict, Any
from unilabos.compile.utils.vessel_parser import get_vessel
def find_connected_heater(G: nx.DiGraph, vessel: str) -> str:
"""
@@ -63,7 +65,7 @@ def generate_dry_protocol(
List[Dict[str, Any]]: 动作序列
"""
# 🔧 核心修改从字典中提取容器ID
vessel_id = vessel["id"]
vessel_id, vessel_data = get_vessel(vessel)
action_sequence = []