- class pylabrobot.resources.Carrier(name: str, size_x: float, size_y: float, size_z: float, sites: List[CarrierSite] | None = None, category: str | None = 'carrier', model: str | None = None)#
Abstract base resource for carriers.
It is recommended to always use a resource carrier to store resources, because this ensures the location of the resources can be calculated precisely.
It is important to use the
__setitem__methods to access the resources, because this ensures that the location of the resources is updated to be within the carrier and that the appropriate callbacks are called.
TipCarrierand assigning one set of tips at location 0 (the bottom):
>>> tip_car = TIP_CAR_480_A00(name='tip carrier') >>> tip_car = STF_L(name='tips_1')
Getting the tips:
Deleting the tips:
>>> del tip_car
Alternative way to delete the tips:
>>> tip_car = None
capacity – The maximum number of items that can be stored in this carrier.
Get the name of this resource.
__init__(name, size_x, size_y, size_z[, ...])
assign_child_resource(resource, location[, ...])
Assign a resource to this carrier.
Get the center of the bottom plane of this resource.
Copy this resource.
Deserialize a resource from a dictionary.
Get the offsets (from bottom left) of the center(s) of this resource.
Get the absolute location of this resource, probably within the
Recursively get all children of this resource.
Get a resource by name.
Get all resources, using self.__getitem__ (so that the location is within this carrier).
Get all sites.
Get the size of this resource in the z-direction.
Loads resources from a JSON file.
Called when a resource is assigned to this resource.
Called when a resource is unassigned from this resource.
Rotate counter clockwise by the given number of degrees.
Return a copy of this resource rotated by the given number of degrees.
Save a resource to a JSON file.
Serialize this resource.
Unassign this resource from its parent.
Unassign a resource from this carrier, checked by name.