Skip to content

Commit 8f1f3c7

Browse files
committed
remove HamiltonLiquidHandler.get_ttti function
1 parent 3dad907 commit 8f1f3c7

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

pylabrobot/liquid_handling/backends/hamilton/STAR_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1456,7 +1456,7 @@ async def pick_up_tips(
14561456
tips = set(cast(HamiltonTip, tip_spot.get_tip()) for tip_spot in tip_spots)
14571457
if len(tips) > 1:
14581458
raise ValueError("Cannot mix tips with different tip types.")
1459-
ttti = (await self.get_ttti(list(tips)))[0]
1459+
ttti = await self.get_or_assign_tip_type_index(tips.pop())
14601460

14611461
max_z = max(op.resource.get_location_wrt(self.deck).z + op.offset.z for op in ops)
14621462
max_total_tip_length = max(op.tip.total_tip_length for op in ops)

pylabrobot/liquid_handling/backends/hamilton/base.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -473,15 +473,6 @@ def _get_hamilton_tip(self, tip_spots: List[TipSpot]) -> HamiltonTip:
473473
raise ValueError(f"Tip {tip} is not a HamiltonTip.")
474474
return tip
475475

476-
async def get_ttti(self, tips: List[HamiltonTip]) -> List[int]:
477-
"""Get tip type table index for a list of tips.
478-
479-
Ensure that for all non-None tips, they have the same tip type, and return the tip type table
480-
index for that tip type.
481-
"""
482-
483-
return [await self.get_or_assign_tip_type_index(tip) for tip in tips]
484-
485476
async def send_raw_command(
486477
self,
487478
command: str,

pylabrobot/liquid_handling/backends/hamilton/vantage_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ async def pick_up_tips(
485485
x_positions, y_positions, tip_pattern = self._ops_to_fw_positions(ops, use_channels)
486486

487487
tips = [cast(HamiltonTip, op.resource.get_tip()) for op in ops]
488-
ttti = await self.get_ttti(tips)
488+
ttti = [await self.get_or_assign_tip_type_index(tip) for tip in tips]
489489

490490
max_z = max(op.resource.get_location_wrt(self.deck).z + op.offset.z for op in ops)
491491
max_total_tip_length = max(op.tip.total_tip_length for op in ops)

0 commit comments

Comments
 (0)