pylabrobot.resources.create_equally_spaced

pylabrobot.resources.create_equally_spaced#

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

Make equally spaced resources.

See ItemizedResource for more details.

Parameters:
  • klass (Type[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_dx (float) – The size of the items in the x direction

  • item_dy (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[T]]