pyinterp.Axis.__getitem__

pyinterp.Axis.__getitem__#

Axis.__getitem__(self, index: int) float#
Axis.__getitem__(self, axis_slice: slice) numpy.ndarray[dtype=float64, shape=(*), order='C']

Overloaded function.

  1. __getitem__(self, index: int) -> float

Get the coordinate value at the given index.

  1. __getitem__(self, axis_slice: slice) -> numpy.ndarray[dtype=float64, shape=(*), order='C']

Get the coordinate values for the given slice.