feat: remove commented workflow synchronization from reaction_station.py.

This commit is contained in:
ZiWei
2025-12-10 17:43:16 +08:00
parent d7c970d244
commit 632f9b90d1
2 changed files with 0 additions and 21 deletions

View File

@@ -154,13 +154,6 @@ class BioyondDispensingStation(BioyondWorkstation):
ratio = json.loads(ratio)
except Exception:
ratio = {}
root = str(Path(__file__).resolve().parents[3])
if root not in sys.path:
sys.path.append(root)
try:
mod = importlib.import_module("tem.compute")
except Exception as e:
raise BioyondException(f"无法导入计算模块: {e}")
try:
wp = float(wt_percent) if isinstance(wt_percent, str) else wt_percent
mt = float(m_tot) if isinstance(m_tot, str) else m_tot

View File

@@ -89,20 +89,6 @@ class BioyondReactionStation(BioyondWorkstation):
# 用于缓存从 Bioyond 查询的工作流序列
self._cached_workflow_sequence = []
# 自动从 Bioyond 系统同步工作流序列(只在初始化时执行一次)
# 自动从 Bioyond 系统同步工作流序列(只在初始化时执行一次)
# try:
# print(f"[初始化] 开始自动同步工作流序列...")
# sync_result = self.sync_workflow_sequence_from_bioyond()
# if sync_result.get("success"):
# print(f"✅ [初始化] {sync_result.get('message')}")
# print(f"✅ [初始化] workflow_sequence 已设置为: {self._cached_workflow_sequence}")
# else:
# print(f"⚠️ [初始化] 工作流序列同步失败: {sync_result.get('message')}")
# except Exception as e:
# print(f"⚠️ [初始化] 自动同步工作流序列时发生异常: {e}")
# import traceback
# traceback.print_exc()
@property
def workflow_sequence(self) -> str: