pylabrobot.resources.ItemizedResource.__init__#

ItemizedResource.__init__(name: str, size_x: float, size_y: float, size_z: float, items: Optional[List[List[pylabrobot.resources.itemized_resource.T]]] = None, num_items_x: Optional[int] = None, num_items_y: Optional[int] = None, category: Optional[str] = None, model: Optional[str] = None)#

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 (Optional[List[List[pylabrobot.resources.itemized_resource.T]]]) – 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 (Optional[int]) – The number of items in the x direction. This method can only and must be used if items is not specified.

  • num_items_y (Optional[int]) – 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 (Optional[str]) – The category of the resource.

  • model (Optional[str]) –

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)]])