pylabrobot.resources.Deck.assign_child_resource
pylabrobot.resources.Deck.assign_child_resource#
- Deck.assign_child_resource(resource: pylabrobot.resources.resource.Resource, location: Optional[pylabrobot.resources.coordinate.Coordinate])#
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 (pylabrobot.resources.resource.Resource) –
location (Optional[pylabrobot.resources.coordinate.Coordinate]) –