mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2026-02-04 21:35:09 +00:00
feat: remove commented workflow synchronization from reaction_station.py.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user