def to_rest(self):
    '\n        Transforms the spectral axis to the rest frame.\n        '
    if ((self.observer is not None) and (self.target is not None)):
        return self.with_observer_stationary_relative_to(self.target)
    result = _apply_relativistic_doppler_shift(self, (- self.radial_velocity))
    return self.replicate(value=result, radial_velocity=(0.0 * KMS), redshift=None)
Transforms the spectral axis to the rest frame.
def to_rest(self):
    '\n        \n        '
    if ((self.observer is not None) and (self.target is not None)):
        return self.with_observer_stationary_relative_to(self.target)
    result = _apply_relativistic_doppler_shift(self, (- self.radial_velocity))
    return self.replicate(value=result, radial_velocity=(0.0 * KMS), redshift=None)