pylabrobot.utils.positions.string_to_index

pylabrobot.utils.positions.string_to_index#

pylabrobot.utils.positions.string_to_index(position_string: str, num_rows: int, num_columns: int) int#

Convert a position string to an index.

Parameters:
  • position_string (str) – The position string.

  • num_rows (int) – The number of rows of the resource that’s indexed.

  • num_columns (int) – The number of columns of the resource that’s indexed.

Returns:

The index of the position.

Return type:

int