convert_units

method of dascore.core.coords.CoordSegmented source

convert_units(
    self ,
    units ,
)-> ‘Self’

Convert units, or set units if none exist.

The guard is per segment rather than on self.units, which speaks only for the first: segments are admitted when their units are merely equal, so a coord in metres can hold a segment in 100 cm, and that one still has work to do.