File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
pylabrobot/liquid_handling Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -1887,8 +1887,19 @@ async def move_picked_up_resource(
18871887 self ,
18881888 to : Coordinate ,
18891889 offset : Coordinate = Coordinate .zero (),
1890+ direction : Optional [GripDirection ] = None ,
18901891 ** backend_kwargs ,
18911892 ):
1893+ """Move a resource that has been picked up to a new location.
1894+
1895+ Args:
1896+ to: The new location to move the resource to. (LFB of plate)
1897+ offset: The offset to apply to the new location.
1898+ direction: The direction in which the resource is gripped. If `None`, the current direction
1899+ will be used.
1900+ backend_kwargs: Additional keyword arguments for the backend, optional.
1901+ """
1902+
18921903 self ._log_command (
18931904 "move_picked_up_resource" ,
18941905 to = to ,
@@ -1901,7 +1912,7 @@ async def move_picked_up_resource(
19011912 ResourceMove (
19021913 location = to ,
19031914 resource = self ._resource_pickup .resource ,
1904- gripped_direction = self ._resource_pickup .direction ,
1915+ gripped_direction = direction or self ._resource_pickup .direction ,
19051916 pickup_distance_from_top = self ._resource_pickup .pickup_distance_from_top ,
19061917 offset = offset ,
19071918 ),
You can’t perform that action at this time.
0 commit comments