slice_by_positions#
- TrackData.slice_by_positions(start, end)[source]#
Slices the track data along the positional axes.
The slicing follows Python slicing conventions (0 indexed, and includes elements up to end-1).
- Parameters:
- Return type:
- Returns:
A new
TrackDataobject with the sliced values.- Raises:
ValueError – If (end - start) is greater than the width, or if (end - start) is not divisible by the resolution.