def _velocity_to_redshift(velocity):
    '\n    Convert a velocity to a relativistic redshift.\n    '
    beta = (velocity / C_KMS)
    return (np.sqrt(((1 + beta) / (1 - beta))) - 1)
Convert a velocity to a relativistic redshift.
def _velocity_to_redshift(velocity):
    '\n    \n    '
    beta = (velocity / C_KMS)
    return (np.sqrt(((1 + beta) / (1 - beta))) - 1)