新增set liquid方法

This commit is contained in:
Xuwznln
2025-07-18 02:38:12 +08:00
parent 8dbea5dbd2
commit 0bd3025d73
4 changed files with 54 additions and 0 deletions

View File

@@ -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 --------------------------------------------------
# ---------------------------------------------------------------