- HamiltonDeck.__init__(num_rails: int, size_x: float, size_y: float, size_z: float, name: str = 'deck', category: str = 'deck', resource_assigned_callback: Optional[Callable] = None, resource_unassigned_callback: Optional[Callable] = None, origin: pylabrobot.resources.coordinate.Coordinate = Coordinate(0, 63, 100), no_trash: bool = False)#
Initialize a new deck.
resource_assigned_callback (Optional[Callable]) – A callback function that is called when a resource is assigned to the deck. This includes resources assigned to child resources. The callback function is called with the resource as an argument. This method may raise an exception to prevent the resource from being assigned.
resource_unassigned_callback (Optional[Callable]) – A callback function that is called when a resource is unassigned from the deck. This includes resources unassigned from child resources. The callback function is called with the resource as an argument.
num_rails (int) –
size_x (float) –
size_y (float) –
size_z (float) –
name (str) –
category (str) –
origin (pylabrobot.resources.coordinate.Coordinate) –
no_trash (bool) –