mymesh.utils.PadRagged#

mymesh.utils.PadRagged(In, fillval=-1)[source]#

Pads a 2d list of lists with variable length into a rectangular numpy array with specified fill value.

Parameters:
  • In (list) – Input list of lists to be padded.

  • fillval (int (or other), optional) – Value used to pad the ragged array, by default -1

Returns:

Out – Padded array.

Return type:

np.ndarray