pylabrobot.resources.create_equally_spaced#

pylabrobot.resources.create_equally_spaced(klass: Type[pylabrobot.resources.itemized_resource.T], num_items_x: int, num_items_y: int, dx: float, dy: float, dz: float, item_size_x: float, item_size_y: float, **kwargs) List[List[pylabrobot.resources.itemized_resource.T]]#

Make equally spaced resources.

See ItemizedResource for more details.

Parameters
  • klass (Type[pylabrobot.resources.itemized_resource.T]) – The class of the resource to create

  • num_items_x (int) – The number of items in the x direction

  • num_items_y (int) – The number of items in the y direction

  • dx (float) – The bottom left corner for items in the left column

  • dy (float) – The bottom left corner for items in the top row

  • dz (float) – The z coordinate for all items

  • item_size_x (float) – The size of the items in the x direction

  • item_size_y (float) – The size of the items in the y direction

  • **kwargs – Additional keyword arguments to pass to the resource constructor

Returns

A list of lists of resources. The outer list contains the columns, and the inner list contains the items in each column.

Return type

List[List[pylabrobot.resources.itemized_resource.T]]