fix liquid_handler.biomek handles

This commit is contained in:
Junhan Chang
2025-06-07 18:52:20 +08:00
parent c7b9c6a825
commit 8698821c52
5 changed files with 93 additions and 7 deletions

View File

@@ -93,6 +93,15 @@ class LiquidHandlerBiomek(LiquidHandlerAbstract):
def deserialize(cls, data: dict, allow_marshal: bool = False) -> LiquidHandler: def deserialize(cls, data: dict, allow_marshal: bool = False) -> LiquidHandler:
return LiquidHandler.deserialize(data, allow_marshal) return LiquidHandler.deserialize(data, allow_marshal)
@property
def success(self):
"""
获取操作是否成功的状态。
Returns:
bool: 如果操作成功返回True否则返回False。
"""
return self._success
def create_protocol( def create_protocol(
self, self,

View File

@@ -368,18 +368,91 @@ liquid_handler.biomek:
result: {} result: {}
handles: handles:
input: input:
- handler_key: liquid-input - handler_key: sources
label: Liquid Input label: sources
data_type: resource
data_source: handle
data_key: liquid
- handler_key: targets
label: targets
data_type: resource
data_source: executor
data_key: liquid
- handler_key: tip_rack
label: tip_rack
data_type: resource
data_source: executor
data_key: liquid
output:
- handler_key: sources_out
label: sources
data_type: resource
data_source: handle
data_key: liquid
- handler_key: targets_out
label: targets
data_type: resource
data_source: executor
data_key: liquid
oscillation_biomek:
type: LiquidHandlerOscillateBiomek
goal:
rpm: rpm
time: time
feedback: {}
result: {}
handles:
input:
- handler_key: plate
label: plate
data_type: resource data_type: resource
io_type: target
data_source: handle data_source: handle
data_key: liquid data_key: liquid
output: output:
- handler_key: liquid-output - handler_key: plate_out
label: Liquid Output label: plate
data_type: resource data_type: resource
io_type: source data_source: handle
data_source: executor data_key: liquid
move_biomek:
type: LiquidHandlerMoveBiomek
goal:
source: resource
target: target
feedback: {}
result:
name: name
handles:
input:
- handler_key: sources
label: sources
data_type: resource
data_source: handle
data_key: liquid
output:
- handler_key: targets
label: targets
data_type: resource
data_source: handle
data_key: liquid
incubation_biomek:
type: LiquidHandlerIncubateBiomek
goal:
time: time
feedback: {}
result: {}
handles:
input:
- handler_key: plate
label: plate
data_type: resource
data_source: handle
data_key: liquid
output:
- handler_key: plate_out
label: plate
data_type: resource
data_source: handle
data_key: liquid data_key: liquid
schema: schema:
type: object type: object

View File

@@ -45,7 +45,11 @@ set(action_files
"action/LiquidHandlerReturnTips96.action" "action/LiquidHandlerReturnTips96.action"
"action/LiquidHandlerStamp.action" "action/LiquidHandlerStamp.action"
"action/LiquidHandlerTransfer.action" "action/LiquidHandlerTransfer.action"
"action/LiquidHandlerTransferBiomek.action" "action/LiquidHandlerTransferBiomek.action"
"action/LiquidHandlerIncubateBiomek.action"
"action/LiquidHandlerMoveBiomek.action"
"action/LiquidHandlerOscillateBiomek.action"
"action/LiquidHandlerAdd.action" "action/LiquidHandlerAdd.action"
"action/LiquidHandlerMix.action" "action/LiquidHandlerMix.action"