pylabrobot.opentrons.flex.Flex.sync_tips_to_robot#
- async Flex.sync_tips_to_robot(tip_rack: TipRack) None#
Make the robot’s tip-rack model agree with PyLabRobot’s.
The robot keeps its own record of which spots in a tip rack still hold a tip, and it is only ever changed by pickups and drops it performed itself. So anything that changes the rack outside a run – a human taking tips, a rack swapped for a partly-used one, state restored from a database – leaves the two records disagreeing, with no symptom until the robot picks up from a spot it believes is full.
This pushes PyLabRobot’s record onto the robot in one
setTipStateper state, taking the resource tree as the truth. Set the tip layout first (tip_rack.set_tip_state(...)), then call this.There is no equivalent for liquid.
loadLiquidis the robot’s only way in, and it refuses any liquid the run did not already define, which a run created without a protocol never does. Well volumes therefore live only in the resource tree.- Parameters:
tip_rack (TipRack)
- Return type:
None