mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2026-02-07 23:45:10 +00:00
新增set liquid方法
This commit is contained in:
@@ -543,6 +543,11 @@ class LiquidHandlerAbstract(LiquidHandlerMiddleware):
|
||||
self._simulator = simulator
|
||||
super().__init__(backend, deck, simulator, channel_num)
|
||||
|
||||
@classmethod
|
||||
def set_liquid(self, wells: list[Well], liquid_names: list[str], volumes: list[float]):
|
||||
"""Set the liquid in a well."""
|
||||
for well, liquid_name, volume in zip(wells, liquid_names, volumes):
|
||||
well.set_liquids([(liquid_name, volume)]) # type: ignore
|
||||
# ---------------------------------------------------------------
|
||||
# REMOVE LIQUID --------------------------------------------------
|
||||
# ---------------------------------------------------------------
|
||||
|
||||
@@ -132,6 +132,9 @@ class PRCXI9300Handler(LiquidHandlerAbstract):
|
||||
self._unilabos_backend = PRCXI9300Backend(tablets_info, host, port, timeout, channel_num, axis, setup, debug, matrix_id)
|
||||
super().__init__(backend=self._unilabos_backend, deck=deck, simulator=True, channel_num=channel_num)
|
||||
|
||||
def set_liquid(self, wells: list[Well], liquid_names: list[str], volumes: list[float]):
|
||||
return super().set_liquid(wells, liquid_names, volumes)
|
||||
|
||||
async def create_protocol(
|
||||
self,
|
||||
protocol_name: str = "",
|
||||
|
||||
Reference in New Issue
Block a user