coordinates.mixins.core.CoordinateSystemAxesMixin.get_mask_from_indices#

CoordinateSystemAxesMixin.get_mask_from_indices(indices: int | Sequence[int]) ndarray[source]#

Boolean mask that is True at the supplied numeric indices.

Negative indices are handled exactly like standard Python indexing.

Parameters:

indices (int or Sequence[int])

Returns:

Mask of length ndim.

Return type:

numpy.ndarray

Raises:

IndexError – If any index is out of range.