mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2026-02-04 21:35:09 +00:00
添加self.pending_liquids_dict的重置方法
This commit is contained in:
@@ -135,7 +135,9 @@ class LiquidHandlerMiddleware(LiquidHandler):
|
|||||||
return await self._simulate_handler.drop_tips(
|
return await self._simulate_handler.drop_tips(
|
||||||
tip_spots, use_channels, offsets, allow_nonzero_volume, **backend_kwargs
|
tip_spots, use_channels, offsets, allow_nonzero_volume, **backend_kwargs
|
||||||
)
|
)
|
||||||
return await super().drop_tips(tip_spots, use_channels, offsets, allow_nonzero_volume, **backend_kwargs)
|
await super().drop_tips(tip_spots, use_channels, offsets, allow_nonzero_volume, **backend_kwargs)
|
||||||
|
self.pending_liquids_dict = {}
|
||||||
|
return
|
||||||
|
|
||||||
async def return_tips(
|
async def return_tips(
|
||||||
self, use_channels: Optional[list[int]] = None, allow_nonzero_volume: bool = False, **backend_kwargs
|
self, use_channels: Optional[list[int]] = None, allow_nonzero_volume: bool = False, **backend_kwargs
|
||||||
@@ -158,8 +160,10 @@ class LiquidHandlerMiddleware(LiquidHandler):
|
|||||||
offsets = [Coordinate.zero()] * len(use_channels)
|
offsets = [Coordinate.zero()] * len(use_channels)
|
||||||
if self._simulator:
|
if self._simulator:
|
||||||
return await self._simulate_handler.discard_tips(use_channels, allow_nonzero_volume, offsets, **backend_kwargs)
|
return await self._simulate_handler.discard_tips(use_channels, allow_nonzero_volume, offsets, **backend_kwargs)
|
||||||
return await super().discard_tips(use_channels, allow_nonzero_volume, offsets, **backend_kwargs)
|
await super().discard_tips(use_channels, allow_nonzero_volume, offsets, **backend_kwargs)
|
||||||
|
self.pending_liquids_dict = {}
|
||||||
|
return
|
||||||
|
|
||||||
def _check_containers(self, resources: Sequence[Resource]):
|
def _check_containers(self, resources: Sequence[Resource]):
|
||||||
super()._check_containers(resources)
|
super()._check_containers(resources)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user