pylabrobot.resources.TipRack.assign_child_resource#
- TipRack.assign_child_resource(resource: Resource, location: Coordinate | None, reassign: bool = True)#
Assign a child resource to this resource.
Will use
resource_assigned_callback()
to notify the parent of the assignment, if parent is notNone
. Note that the resource to be assigned may have child resources, in which case you will be responsible for handling any checking, if necessary.- Parameters:
resource (Resource) – The resource to assign.
location (Coordinate | None) – The location of the resource, relative to this resource.
reassign (bool) – If
False
, an error will be raised if the resource to be assigned is already assigned to this resource. Defaults toTrue
.