@@ -174,6 +174,7 @@ def select_tip_pipette(self, tip: Tip, with_tip: bool) -> Optional[str]:
174174 return None
175175
176176 async def _assign_tip_rack (self , tip_rack : TipRack , tip : Tip ):
177+ ot_slot_size_y = 86
177178 lw = {
178179 "schemaVersion" : 2 ,
179180 "version" : 1 ,
@@ -199,7 +200,11 @@ async def _assign_tip_rack(self, tip_rack: TipRack, tip: Tip):
199200 [self .get_ot_name (tip_spot .name ) for tip_spot in tip_rack .get_all_items ()],
200201 (tip_rack .num_items_x , tip_rack .num_items_y ),
201202 ),
202- "cornerOffsetFromSlot" : {"x" : 0 , "y" : 0 , "z" : 0 },
203+ "cornerOffsetFromSlot" : {
204+ "x" : 0 ,
205+ "y" : ot_slot_size_y - tip_rack .get_absolute_size_y (), # hinges push it to the back (PLR is LFB, OT is LBB)
206+ "z" : 0
207+ },
203208 "dimensions" : {
204209 "xDimension" : tip_rack .get_absolute_size_x (),
205210 "yDimension" : tip_rack .get_absolute_size_y (),
@@ -276,8 +281,6 @@ async def pick_up_tips(self, ops: List[Pickup], use_channels: List[int]):
276281 if tip_rack .name not in self ._tip_racks :
277282 await self ._assign_tip_rack (tip_rack , op .tip )
278283
279- # ad-hoc offset adjustment that makes it smoother.
280- # TODO: is this needed?
281284 offset_z += op .tip .total_tip_length
282285
283286 ot_api .lh .pick_up_tip (
0 commit comments