pylabrobot.resources.utils.create_equally_spaced_2d#

pylabrobot.resources.utils.create_equally_spaced_2d(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 in a 2D grid. Also see create_equally_spaced_x() and create_equally_spaced_y().

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