pylabrobot.utils.positions.string_to_pattern#

pylabrobot.utils.positions.string_to_pattern(position_range_string: str, num_rows: int, num_columns: int) List[List[bool]]#

Convert a position string to a pattern.

Parameters
  • position_string – The position string.

  • position_range_string (str) –

  • num_rows (int) –

  • num_columns (int) –

Returns

A list of lists of booleans.

Return type

List[List[bool]]

Examples

Convert "A1:A3" to a pattern.

>>> _string_range_to_pattern("A1:C3")
[[True, True, True, False, False, ...], [True, True, True, False, False...],
  [True, True, True, False, False...], ...]

Convert "A1:A3" to a pattern.

>>> _string_range_to_pattern("A1:A3")
[[True, True, True, False, False, ...], [False, False, ...], ...]

Convert "A1:C1" to a pattern.

>>> _string_range_to_pattern("A1:C1")
[[True, False, ...], [True, False, ...], [True, False, ...], [False, False, ...], ...]