def beta_to_kelvin(beta):
    """
    Convert :math:`\\beta` to Kelvin.

    Parameters
    ----------
    beta : float
        Inversion temperature.

    Returns
    -------
    T : float
        Temperature (K).
    """

    kb=8.6173303E-5
    ev = 1.0/float(beta)
    T = ev/kb
    return T