update_limits

method of dascore.core.coords.BaseCoord source

update_limits(
    self ,
    min = None,
    max = None,
    step = None,
    **kwargs ,
)-> ‘Self’

Update the limits or sampling of the coordinates.

If start and stop are defined a new step is determined and returned. Next, the step size is updated changing only the end. Then the start is updated changing the start/end. Then the end is updated changing the start/end.

Parameters

Parameter Description
min The new start of the coordinate.
max The new stop of the coordinate.
step New step for the coordinate
**kwargs Any other attributes which are used to create new coordinate.
Note

For CoordRange stop will be max + step.