pylabrobot.resources.ResourceStack.assign_child_resource#
- ResourceStack.assign_child_resource(resource)#
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 – The resource to assign.
location – The location of the resource, relative to this resource.
reassign – If
False
, an error will be raised if the resource to be assigned is already assigned to this resource. Defaults toTrue
.