change_length

method of dascore.core.coords.CoordPartial source

change_length(
    self ,
    length: int ,
)-> ‘Self’

Adjust the length of the coordinate by changing the end value.

This is useful for floating point coordinates who frequently suffer from off by one errors.

Note: Not all coordinates implement this method.

Parameters

Parameter Description
length The output length.