mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2025-12-17 04:51:10 +00:00
* 更新Bioyond工作站配置,添加新的物料类型映射和载架定义,优化物料查询逻辑 * 添加Bioyond实验配置文件,定义物料类型映射和设备配置 * 更新bioyond_warehouse_reagent_stack方法,修正试剂堆栈尺寸和布局描述 * 更新Bioyond实验配置,修正物料类型映射,优化设备配置 * 更新Bioyond资源同步逻辑,优化物料入库流程,增强错误处理和日志记录 * 更新Bioyond资源,添加配液站和反应站专用载架,优化仓库工厂函数的排序方式 * 更新Bioyond资源,添加配液站和反应站相关载架,优化试剂瓶和样品瓶配置 * 更新Bioyond实验配置,修正试剂瓶载架ID,确保与设备匹配 * 更新Bioyond资源,移除反应站单烧杯载架,添加反应站单烧瓶载架分类 * Refactor Bioyond resource synchronization and update bottle carrier definitions - Removed traceback printing in error handling for Bioyond synchronization. - Enhanced logging for existing Bioyond material ID usage during synchronization. - Added new bottle carrier definitions for single flask and updated existing ones. - Refactored dispensing station and reaction station bottle definitions for clarity and consistency. - Improved resource mapping and error handling in graphio for Bioyond resource conversion. - Introduced layout parameter in warehouse factory for better warehouse configuration. * 更新Bioyond仓库工厂,添加排序方式支持,优化坐标计算逻辑 * 更新Bioyond载架和甲板配置,调整样品板尺寸和仓库坐标 * 更新Bioyond资源同步,增强占用位置日志信息,修正坐标转换逻辑 * 更新Bioyond反应站和分配站配置,调整材料类型映射和ID,移除不必要的项 * support name change during materials change * fix json dumps * correct tip * 优化调度器API路径,更新相关方法描述 * 更新 BIOYOND 载架相关文档,调整 API 以支持自带试剂瓶的载架类型,修复资源获取时的子物料处理逻辑 * 实现资源删除时的同步处理,优化出库操作逻辑 * 修复 ItemizedCarrier 中的可见性逻辑 * 保存 Bioyond 原始信息到 unilabos_extra,以便出库时查询 * 根据 resource.capacity 判断是试剂瓶(载架)还是多瓶载架,走不同的奔曜转换 * Fix bioyond bottle_carriers ordering * 优化 Bioyond 物料同步逻辑,增强坐标解析和位置更新处理 * disable slave connect websocket * correct remove_resource stats * change uuid logger to trace level * enable slave mode * refactor(bioyond): 统一资源命名并优化物料同步逻辑 - 将DispensingStation和ReactionStation资源统一为PolymerStation命名 - 优化物料同步逻辑,支持耗材类型(typeMode=0)的查询 - 添加物料默认参数配置功能 - 调整仓库坐标布局 - 清理废弃资源定义 * feat(warehouses): 为仓库函数添加col_offset和layout参数 * refactor: 更新实验配置中的物料类型映射命名 将DispensingStation和ReactionStation的物料类型映射统一更名为PolymerStation,保持命名一致性 * fix: 更新实验配置中的载体名称从6VialCarrier到6StockCarrier * feat(bioyond): 实现物料创建与入库分离逻辑 将物料同步流程拆分为两个独立阶段:transfer阶段只创建物料,add阶段执行入库 简化状态检查接口,仅返回连接状态 * fix(reaction_station): 修正液体进料烧杯体积单位并增强返回结果 将液体进料烧杯的体积单位从μL改为g以匹配实际使用场景 在返回结果中添加merged_workflow和order_params字段,提供更完整的工作流信息 * feat(dispensing_station): 在任务创建返回结果中添加order_params信息 在create_order方法返回结果中增加order_params字段,以便调用方获取完整的任务参数 * fix(dispensing_station): 修改90%物料分配逻辑从分成3份改为直接使用 原逻辑将主称固体平均分成3份作为90%物料,现改为直接使用main_portion * feat(bioyond): 添加任务编码和任务ID的输出,支持批量任务创建后的状态监控 * refactor(registry): 简化设备配置中的任务结果处理逻辑 将多个单独的任务编码和ID字段合并为统一的return_info字段 更新相关描述以反映新的数据结构 * feat(工作站): 添加HTTP报送服务和任务完成状态跟踪 - 在graphio.py中添加API必需字段 - 实现工作站HTTP服务启动和停止逻辑 - 添加任务完成状态跟踪字典和等待方法 - 重写任务完成报送处理方法记录状态 - 支持批量任务完成等待和报告获取 * refactor(dispensing_station): 移除wait_for_order_completion_and_get_report功能 该功能已被wait_for_multiple_orders_and_get_reports替代,简化代码结构 * fix: 更新任务报告API错误 * fix(workstation_http_service): 修复状态查询中device_id获取逻辑 处理状态查询时安全获取device_id,避免因属性不存在导致的异常 * fix(bioyond_studio): 改进物料入库失败时的错误处理和日志记录 在物料入库API调用失败时,添加更详细的错误信息打印 同时修正station.py中对空响应和失败情况的判断逻辑 * refactor(bioyond): 优化瓶架载体的分配逻辑和注释说明 重构瓶架载体的分配逻辑,使用嵌套循环替代硬编码索引分配 添加更详细的坐标映射说明,明确PLR与Bioyond坐标的对应关系 * fix(bioyond_rpc): 修复物料入库成功时无data字段返回空的问题 当API返回成功但无data字段时,返回包含success标识的字典而非空字典 --------- Co-authored-by: Xuwznln <18435084+Xuwznln@users.noreply.github.com> Co-authored-by: Junhan Chang <changjh@dp.tech>
491 lines
18 KiB
YAML
491 lines
18 KiB
YAML
bioyond_dispensing_station:
|
||
category:
|
||
- workstation
|
||
- bioyond
|
||
- bioyond_dispensing_station
|
||
class:
|
||
action_value_mappings:
|
||
batch_create_90_10_vial_feeding_tasks:
|
||
feedback: {}
|
||
goal:
|
||
delay_time: delay_time
|
||
hold_m_name: hold_m_name
|
||
liquid_material_name: liquid_material_name
|
||
speed: speed
|
||
temperature: temperature
|
||
titration: titration
|
||
goal_default:
|
||
delay_time: '600'
|
||
hold_m_name: ''
|
||
liquid_material_name: NMP
|
||
speed: '400'
|
||
temperature: '40'
|
||
titration: ''
|
||
handles:
|
||
input:
|
||
- data_key: titration
|
||
data_source: handle
|
||
data_type: object
|
||
handler_key: titration
|
||
io_type: source
|
||
label: Titration Data From Calculation Node
|
||
output:
|
||
- data_key: return_info
|
||
data_source: executor
|
||
data_type: string
|
||
handler_key: BATCH_CREATE_RESULT
|
||
io_type: sink
|
||
label: Complete Batch Create Result JSON (contains order_codes and order_ids)
|
||
result:
|
||
return_info: return_info
|
||
schema:
|
||
description: 批量创建90%10%小瓶投料任务。从计算节点接收titration数据,包含物料名称、主称固体质量、滴定固体质量和滴定溶剂体积。返回的return_info中包含order_codes和order_ids列表。
|
||
properties:
|
||
feedback:
|
||
properties: {}
|
||
required: []
|
||
title: BatchCreate9010VialFeedingTasks_Feedback
|
||
type: object
|
||
goal:
|
||
properties:
|
||
delay_time:
|
||
default: '600'
|
||
description: 延迟时间(秒),默认600
|
||
type: string
|
||
hold_m_name:
|
||
description: 库位名称,如"C01",必填参数
|
||
type: string
|
||
liquid_material_name:
|
||
default: NMP
|
||
description: 10%物料的液体物料名称,默认为"NMP"
|
||
type: string
|
||
speed:
|
||
default: '400'
|
||
description: 搅拌速度,默认400
|
||
type: string
|
||
temperature:
|
||
default: '40'
|
||
description: 温度(℃),默认40
|
||
type: string
|
||
titration:
|
||
description: '滴定信息对象,包含: name(物料名称), main_portion(主称固体质量g), titration_portion(滴定固体质量g),
|
||
titration_solvent(滴定溶液体积mL)'
|
||
type: string
|
||
required:
|
||
- titration
|
||
- hold_m_name
|
||
title: BatchCreate9010VialFeedingTasks_Goal
|
||
type: object
|
||
result:
|
||
properties:
|
||
return_info:
|
||
description: 批量任务创建结果汇总JSON字符串,包含total(总数)、success(成功数)、failed(失败数)、order_codes(任务编码数组)、order_ids(任务ID数组)、details(每个任务的详细信息)
|
||
type: string
|
||
required:
|
||
- return_info
|
||
title: BatchCreate9010VialFeedingTasks_Result
|
||
type: object
|
||
required:
|
||
- goal
|
||
title: BatchCreate9010VialFeedingTasks
|
||
type: object
|
||
type: UniLabJsonCommand
|
||
batch_create_diamine_solution_tasks:
|
||
feedback: {}
|
||
goal:
|
||
delay_time: delay_time
|
||
liquid_material_name: liquid_material_name
|
||
solutions: solutions
|
||
speed: speed
|
||
temperature: temperature
|
||
goal_default:
|
||
delay_time: '600'
|
||
liquid_material_name: NMP
|
||
solutions: ''
|
||
speed: '400'
|
||
temperature: '20'
|
||
handles:
|
||
input:
|
||
- data_key: solutions
|
||
data_source: handle
|
||
data_type: array
|
||
handler_key: solutions
|
||
io_type: source
|
||
label: Solution Data From Python
|
||
output:
|
||
- data_key: return_info
|
||
data_source: executor
|
||
data_type: string
|
||
handler_key: BATCH_CREATE_RESULT
|
||
io_type: sink
|
||
label: Complete Batch Create Result JSON (contains order_codes and order_ids)
|
||
result:
|
||
return_info: return_info
|
||
schema:
|
||
description: 批量创建二胺溶液配置任务。自动为多个二胺样品创建溶液配置任务,每个任务包含固体物料称量、溶剂添加、搅拌混合等步骤。返回的return_info中包含order_codes和order_ids列表。
|
||
properties:
|
||
feedback:
|
||
properties: {}
|
||
required: []
|
||
title: BatchCreateDiamineSolutionTasks_Feedback
|
||
type: object
|
||
goal:
|
||
properties:
|
||
delay_time:
|
||
default: '600'
|
||
description: 溶液配置完成后的延迟时间(秒),用于充分混合和溶解,默认600秒
|
||
type: string
|
||
liquid_material_name:
|
||
default: NMP
|
||
description: 液体溶剂名称,用于溶解固体物料,默认为NMP(N-甲基吡咯烷酮)
|
||
type: string
|
||
solutions:
|
||
description: '溶液列表,JSON数组格式,每个元素包含: name(物料名称), order(序号), solid_mass(固体质量g),
|
||
solvent_volume(溶剂体积mL)。示例: [{"name": "MDA", "order": 0, "solid_mass":
|
||
5.0, "solvent_volume": 20}, {"name": "MPDA", "order": 1, "solid_mass":
|
||
4.5, "solvent_volume": 18}]'
|
||
type: string
|
||
speed:
|
||
default: '400'
|
||
description: 搅拌速度(rpm),用于混合溶液,默认400转/分钟
|
||
type: string
|
||
temperature:
|
||
default: '20'
|
||
description: 配置温度(℃),溶液配置过程的目标温度,默认20℃(室温)
|
||
type: string
|
||
required:
|
||
- solutions
|
||
title: BatchCreateDiamineSolutionTasks_Goal
|
||
type: object
|
||
result:
|
||
properties:
|
||
return_info:
|
||
description: 批量任务创建结果汇总JSON字符串,包含total(总数)、success(成功数)、failed(失败数)、order_codes(任务编码数组)、order_ids(任务ID数组)、details(每个任务的详细信息)
|
||
type: string
|
||
required:
|
||
- return_info
|
||
title: BatchCreateDiamineSolutionTasks_Result
|
||
type: object
|
||
required:
|
||
- goal
|
||
title: BatchCreateDiamineSolutionTasks
|
||
type: object
|
||
type: UniLabJsonCommand
|
||
create_90_10_vial_feeding_task:
|
||
feedback: {}
|
||
goal:
|
||
delay_time: delay_time
|
||
hold_m_name: hold_m_name
|
||
order_name: order_name
|
||
percent_10_1_assign_material_name: percent_10_1_assign_material_name
|
||
percent_10_1_liquid_material_name: percent_10_1_liquid_material_name
|
||
percent_10_1_target_weigh: percent_10_1_target_weigh
|
||
percent_10_1_volume: percent_10_1_volume
|
||
percent_10_2_assign_material_name: percent_10_2_assign_material_name
|
||
percent_10_2_liquid_material_name: percent_10_2_liquid_material_name
|
||
percent_10_2_target_weigh: percent_10_2_target_weigh
|
||
percent_10_2_volume: percent_10_2_volume
|
||
percent_10_3_assign_material_name: percent_10_3_assign_material_name
|
||
percent_10_3_liquid_material_name: percent_10_3_liquid_material_name
|
||
percent_10_3_target_weigh: percent_10_3_target_weigh
|
||
percent_10_3_volume: percent_10_3_volume
|
||
percent_90_1_assign_material_name: percent_90_1_assign_material_name
|
||
percent_90_1_target_weigh: percent_90_1_target_weigh
|
||
percent_90_2_assign_material_name: percent_90_2_assign_material_name
|
||
percent_90_2_target_weigh: percent_90_2_target_weigh
|
||
percent_90_3_assign_material_name: percent_90_3_assign_material_name
|
||
percent_90_3_target_weigh: percent_90_3_target_weigh
|
||
speed: speed
|
||
temperature: temperature
|
||
goal_default:
|
||
delay_time: ''
|
||
hold_m_name: ''
|
||
order_name: ''
|
||
percent_10_1_assign_material_name: ''
|
||
percent_10_1_liquid_material_name: ''
|
||
percent_10_1_target_weigh: ''
|
||
percent_10_1_volume: ''
|
||
percent_10_2_assign_material_name: ''
|
||
percent_10_2_liquid_material_name: ''
|
||
percent_10_2_target_weigh: ''
|
||
percent_10_2_volume: ''
|
||
percent_10_3_assign_material_name: ''
|
||
percent_10_3_liquid_material_name: ''
|
||
percent_10_3_target_weigh: ''
|
||
percent_10_3_volume: ''
|
||
percent_90_1_assign_material_name: ''
|
||
percent_90_1_target_weigh: ''
|
||
percent_90_2_assign_material_name: ''
|
||
percent_90_2_target_weigh: ''
|
||
percent_90_3_assign_material_name: ''
|
||
percent_90_3_target_weigh: ''
|
||
speed: ''
|
||
temperature: ''
|
||
handles: {}
|
||
result:
|
||
return_info: return_info
|
||
schema:
|
||
description: ''
|
||
properties:
|
||
feedback:
|
||
properties: {}
|
||
required: []
|
||
title: DispenStationVialFeed_Feedback
|
||
type: object
|
||
goal:
|
||
properties:
|
||
delay_time:
|
||
type: string
|
||
hold_m_name:
|
||
type: string
|
||
order_name:
|
||
type: string
|
||
percent_10_1_assign_material_name:
|
||
type: string
|
||
percent_10_1_liquid_material_name:
|
||
type: string
|
||
percent_10_1_target_weigh:
|
||
type: string
|
||
percent_10_1_volume:
|
||
type: string
|
||
percent_10_2_assign_material_name:
|
||
type: string
|
||
percent_10_2_liquid_material_name:
|
||
type: string
|
||
percent_10_2_target_weigh:
|
||
type: string
|
||
percent_10_2_volume:
|
||
type: string
|
||
percent_10_3_assign_material_name:
|
||
type: string
|
||
percent_10_3_liquid_material_name:
|
||
type: string
|
||
percent_10_3_target_weigh:
|
||
type: string
|
||
percent_10_3_volume:
|
||
type: string
|
||
percent_90_1_assign_material_name:
|
||
type: string
|
||
percent_90_1_target_weigh:
|
||
type: string
|
||
percent_90_2_assign_material_name:
|
||
type: string
|
||
percent_90_2_target_weigh:
|
||
type: string
|
||
percent_90_3_assign_material_name:
|
||
type: string
|
||
percent_90_3_target_weigh:
|
||
type: string
|
||
speed:
|
||
type: string
|
||
temperature:
|
||
type: string
|
||
required:
|
||
- order_name
|
||
- percent_90_1_assign_material_name
|
||
- percent_90_1_target_weigh
|
||
- percent_90_2_assign_material_name
|
||
- percent_90_2_target_weigh
|
||
- percent_90_3_assign_material_name
|
||
- percent_90_3_target_weigh
|
||
- percent_10_1_assign_material_name
|
||
- percent_10_1_target_weigh
|
||
- percent_10_1_volume
|
||
- percent_10_1_liquid_material_name
|
||
- percent_10_2_assign_material_name
|
||
- percent_10_2_target_weigh
|
||
- percent_10_2_volume
|
||
- percent_10_2_liquid_material_name
|
||
- percent_10_3_assign_material_name
|
||
- percent_10_3_target_weigh
|
||
- percent_10_3_volume
|
||
- percent_10_3_liquid_material_name
|
||
- speed
|
||
- temperature
|
||
- delay_time
|
||
- hold_m_name
|
||
title: DispenStationVialFeed_Goal
|
||
type: object
|
||
result:
|
||
properties:
|
||
return_info:
|
||
type: string
|
||
required:
|
||
- return_info
|
||
title: DispenStationVialFeed_Result
|
||
type: object
|
||
required:
|
||
- goal
|
||
title: DispenStationVialFeed
|
||
type: object
|
||
type: DispenStationVialFeed
|
||
create_diamine_solution_task:
|
||
feedback: {}
|
||
goal:
|
||
delay_time: delay_time
|
||
hold_m_name: hold_m_name
|
||
liquid_material_name: liquid_material_name
|
||
material_name: material_name
|
||
order_name: order_name
|
||
speed: speed
|
||
target_weigh: target_weigh
|
||
temperature: temperature
|
||
volume: volume
|
||
goal_default:
|
||
delay_time: ''
|
||
hold_m_name: ''
|
||
liquid_material_name: ''
|
||
material_name: ''
|
||
order_name: ''
|
||
speed: ''
|
||
target_weigh: ''
|
||
temperature: ''
|
||
volume: ''
|
||
handles: {}
|
||
result:
|
||
return_info: return_info
|
||
schema:
|
||
description: ''
|
||
properties:
|
||
feedback:
|
||
properties: {}
|
||
required: []
|
||
title: DispenStationSolnPrep_Feedback
|
||
type: object
|
||
goal:
|
||
properties:
|
||
delay_time:
|
||
type: string
|
||
hold_m_name:
|
||
type: string
|
||
liquid_material_name:
|
||
type: string
|
||
material_name:
|
||
type: string
|
||
order_name:
|
||
type: string
|
||
speed:
|
||
type: string
|
||
target_weigh:
|
||
type: string
|
||
temperature:
|
||
type: string
|
||
volume:
|
||
type: string
|
||
required:
|
||
- order_name
|
||
- material_name
|
||
- target_weigh
|
||
- volume
|
||
- liquid_material_name
|
||
- speed
|
||
- temperature
|
||
- delay_time
|
||
- hold_m_name
|
||
title: DispenStationSolnPrep_Goal
|
||
type: object
|
||
result:
|
||
properties:
|
||
return_info:
|
||
type: string
|
||
required:
|
||
- return_info
|
||
title: DispenStationSolnPrep_Result
|
||
type: object
|
||
required:
|
||
- goal
|
||
title: DispenStationSolnPrep
|
||
type: object
|
||
type: DispenStationSolnPrep
|
||
wait_for_multiple_orders_and_get_reports:
|
||
feedback: {}
|
||
goal:
|
||
batch_create_result: batch_create_result
|
||
check_interval: check_interval
|
||
timeout: timeout
|
||
goal_default:
|
||
batch_create_result: ''
|
||
check_interval: '10'
|
||
timeout: '7200'
|
||
handles:
|
||
input:
|
||
- data_key: batch_create_result
|
||
data_source: handle
|
||
data_type: string
|
||
handler_key: BATCH_CREATE_RESULT
|
||
io_type: source
|
||
label: Batch Task Creation Result From Previous Step
|
||
output:
|
||
- data_key: return_info
|
||
data_source: handle
|
||
data_type: string
|
||
handler_key: batch_reports_result
|
||
io_type: sink
|
||
label: Batch Order Completion Reports
|
||
result:
|
||
return_info: return_info
|
||
schema:
|
||
description: 同时等待多个任务完成并获取所有实验报告。从上游batch_create任务接收包含order_codes和order_ids的结果对象,并行监控所有任务状态并返回每个任务的报告。
|
||
properties:
|
||
feedback:
|
||
properties: {}
|
||
required: []
|
||
title: WaitForMultipleOrdersAndGetReports_Feedback
|
||
type: object
|
||
goal:
|
||
properties:
|
||
batch_create_result:
|
||
description: 批量创建任务的返回结果对象,包含order_codes和order_ids数组。从上游batch_create节点通过handle传递
|
||
type: string
|
||
check_interval:
|
||
default: '10'
|
||
description: 检查任务状态的时间间隔(秒),默认每10秒检查一次所有待完成任务
|
||
type: string
|
||
timeout:
|
||
default: '7200'
|
||
description: 等待超时时间(秒),默认7200秒(2小时)。超过此时间未完成的任务将标记为timeout
|
||
type: string
|
||
required:
|
||
- batch_create_result
|
||
title: WaitForMultipleOrdersAndGetReports_Goal
|
||
type: object
|
||
result:
|
||
properties:
|
||
return_info:
|
||
description: 'JSON格式的批量任务完成信息,包含: total(总数), completed(成功数), timeout(超时数),
|
||
error(错误数), elapsed_time(总耗时), reports(报告数组,每个元素包含order_code,
|
||
order_id, status, completion_status, report, elapsed_time)'
|
||
type: string
|
||
required:
|
||
- return_info
|
||
title: WaitForMultipleOrdersAndGetReports_Result
|
||
type: object
|
||
required:
|
||
- goal
|
||
title: WaitForMultipleOrdersAndGetReports
|
||
type: object
|
||
type: UniLabJsonCommand
|
||
module: unilabos.devices.workstation.bioyond_studio.dispensing_station:BioyondDispensingStation
|
||
status_types: {}
|
||
type: python
|
||
config_info: []
|
||
description: ''
|
||
handles: []
|
||
icon: preparation_station.webp
|
||
init_param_schema:
|
||
config:
|
||
properties:
|
||
config:
|
||
type: string
|
||
deck:
|
||
type: string
|
||
required:
|
||
- config
|
||
- deck
|
||
type: object
|
||
data:
|
||
properties: {}
|
||
required: []
|
||
type: object
|
||
version: 1.0.0
|