def o_to_matsubara_idx_f(o):
    """
    Convert index in "o" convension to fermionic Matsubara index

    Parameters
    ----------
    o 2*n+1

    Returns n
    -------

    """
    assert o%2 == 1
    return int((o-1)/2)