mymesh.utils.ExtractRagged#

mymesh.utils.ExtractRagged(In, delval=-1, dtype=None)[source]#

Convert a padded numpy array to a ragged list of list by removing entries that match the specified value.

Parameters:
  • In (np.ndarray) – Input array

  • delval (int, optional) – Value to remove from the input array, by default -1

  • dtype (type, optional) – Data type to cast the array to, by default the data type is unchanged.

Returns:

Out – Output list of lists with the specified value removed.

Return type:

list