pysdic.IntegrationPoints.keep_points_by_index#

IntegrationPoints.keep_points_by_index(indices, *, propagate_properties=True)[source]#

Keep only the points with the given indices.

Note

The points keep their original order and duplicated indices are ignored.

Parameters:
  • indices (ArrayLike) – An integer array of shape \((R,)\) with the indices of the points to keep, in \([0, N_p)\).

  • propagate_properties (bool, optional (default: True)) – If False, the new integration points have no properties.

Returns:

The integration points with only the given points.

Return type:

pysdic.IntegrationPoints

Raises:
  • TypeError – If the indices are not integers.

  • IndexError – If an index is out of \([0, N_p)\).