pylabrobot.resources.TipRack.__init__#
- TipRack.__init__(name: str, size_x: float, size_y: float, size_z: float, items: List[List[TipSpot]] | None = None, num_items_x: int | None = None, num_items_y: int | 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.
items (List[List[TipSpot]] | None) – The items on the resource. See
pylabrobot.resources.create_equally_spaced()
. Note that items names will be prefixed with the resource name. Defaults to[]
.num_items_x (int | None) – The number of items in the x direction. This method can only and must be used if
items
is not specified.num_items_y (int | None) – The number of items in the y direction. This method can only and must be used if
items
is not specified.location – The location of the resource.
category (str) – The category of the resource.
model (str | None)
with_tips (bool)
Examples
Creating a plate with 96 wells with
pylabrobot.resources.create_equally_spaced()
:>>> from pylabrobot.resources import Plate >>> plate = Plate("plate", size_x=1, size_y=1, size_z=1, lid_height=10, ... items=create_equally_spaced(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 with a list:
>>> from pylabrobot.resources import Plate >>> plate = Plate("plate", size_x=1, size_y=1, size_z=1, lid_height=10, ... items=[[Well("well", size_x=1, size_y=1, size_z=1)]])