pylabrobot.resources.Plate.assign_child_resource#

Plate.assign_child_resource(resource: Resource, location: Optional[Coordinate], 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 not None. 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 (Optional[Coordinate]) – 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 to True.