Skip to content

Commit e532052

Browse files
authored
Return dict from probe_tip_presence_via_pickup (#571)
1 parent 50ea053 commit e532052

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pylabrobot/liquid_handling/liquid_handler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2337,15 +2337,15 @@ def assign_child_resource(
23372337

23382338
async def probe_tip_presence_via_pickup(
23392339
self, tip_spots: List[TipSpot], use_channels: Optional[List[int]] = None
2340-
) -> List[bool]:
2340+
) -> Dict[str, bool]:
23412341
"""Probe tip presence by attempting pickup on each TipSpot.
23422342
23432343
Args:
23442344
tip_spots: TipSpots to probe.
23452345
use_channels: Channels to use (must match tip_spots length).
23462346
23472347
Returns:
2348-
List[bool]: True if tip is present, False otherwise.
2348+
Dict[str, bool]: Mapping of tip spot names to presence flags.
23492349
"""
23502350

23512351
if use_channels is None:
@@ -2410,4 +2410,4 @@ async def probe_tip_presence_via_pickup(
24102410
assert cluster[0][0].location is not None, "TipSpot location must be at a location"
24112411
print(f"Warning: drop_tips failed for cluster at x={cluster[0][0].location.x}: {e}")
24122412

2413-
return presence_flags
2413+
return {ts.name: flag for ts, flag in zip(tip_spots, presence_flags)}

0 commit comments

Comments
 (0)