pylabrobot.resources.TipRack.__init__#
- TipRack.__init__(name: str, size_x: float, size_y: float, size_z: float, ordered_items: Dict[str, TipSpot] | None = None, ordering: List[str] | None = None, category: str = 'tip_rack', model: str | None = None, with_tips: bool = True)#
Initialize an itemized resource
- Parameters:
name (str) – The name of the resource.
size_x (float) – The size of the resource in the x direction.
size_y (float) – The size of the resource in the y direction.
size_z (float) – The size of the resource in the z direction.
ordered_items (Dict[str, TipSpot] | None) – The items on the resource, along with their identifier (as keys). See
pylabrobot.resources.create_ordered_items_2d()
. If this is specified,ordering
must beNone
. Keys must be in transposed MS Excel style notation, e.g. “A1” for the first item, “B1” for the item below that, “A2” for the item to the right, etc.ordering (List[str] | None) – The order of the items on the resource. This is a list of identifiers. If this is specified,
ordered_items
must beNone
. Seeordered_items
for the format of the identifiers.category (str) – The category of the resource.
model (str | None)
with_tips (bool)
Examples
Creating a plate with 96 wells with
pylabrobot.resources.create_ordered_items_2d()
:>>> from pylabrobot.resources import Plate >>> plate = Plate("plate", size_x=1, size_y=1, size_z=1, ... ordered_items=create_ordered_items_2d(Well ... dx=0, dy=0, dz=0, item_size_x=1, item_size_y=1, ... num_items_x=1, num_items_y=1))
Creating a plate with 1 Well in a dict:
>>> from pylabrobot.resources import Plate >>> plate = Plate("plate", size_x=1, size_y=1, size_z=1, ... ordered_items={"A1": Well("well", size_x=1, size_y=1, size_z=1)})