pylabrobot.liquid_handling.liquid_handler.LiquidHandler.move_resource#

async LiquidHandler.move_resource(resource: Resource, to: Coordinate, intermediate_locations: List[Coordinate] | None = None, resource_offset: Coordinate | None = None, pickup_offset: Coordinate = Coordinate(x=0, y=0, z=0), destination_offset: Coordinate = Coordinate(x=0, y=0, z=0), pickup_distance_from_top: float = 0, pickup_direction: GripDirection = GripDirection.FRONT, drop_direction: GripDirection = GripDirection.FRONT, get_direction: GripDirection | None = None, put_direction: GripDirection | None = None, **backend_kwargs)#

Move a resource to a new location.

Has convenience methods move_plate() and move_lid().

Examples

Move a plate to a new location:

>>> await lh.move_resource(plate, to=Coordinate(100, 100, 100))
Parameters:
  • resource (Resource) – The Resource object.

  • to (Coordinate) – The absolute coordinate (meaning relative to deck) to move the resource to.

  • intermediate_locations (List[Coordinate] | None) – A list of intermediate locations to move the resource through.

  • pickup_offset (Coordinate) – The offset from the resource’s origin, optional (rarely necessary).

  • destination_offset (Coordinate) – The offset from the location’s origin, optional (rarely necessary).

  • pickup_distance_from_top (float) – The distance from the top of the resource to pick up from.

  • pickup_direction (GripDirection) – The direction from which to pick up the resource.

  • drop_direction (GripDirection) – The direction from which to put down the resource.

  • resource_offset (Coordinate | None)

  • get_direction (GripDirection | None)

  • put_direction (GripDirection | None)