pylabrobot.utils.list.reshape_2d

Contents

pylabrobot.utils.list.reshape_2d#

pylabrobot.utils.list.reshape_2d(list_: List[T], shape: Tuple[int, int]) List[List[T]]#

Reshape a list into a 2d list.

Parameters:
  • list – The list to reshape.

  • shape (Tuple[int, int]) – The new shape.

  • list_ (List[T])

Returns:

The reshaped list.

Return type:

List[List[T]]