def lnprior(theta):
    if (len(theta) == 3):
        (beta, kappa, Ak0) = theta
        c3 = (0.0 < Ak0 <= 5.0)
        c4 = True
    else:
        (beta, kappa) = theta
        c3 = True
        c4 = True
    c1 = (0 <= beta <= 6)
    c2 = (0 <= kappa)
    if (c1 and c2 and c3 and c4):
        return 0.0
    return (- np.inf)
def lnprior(theta):
    if (len(theta) == 3):
        (beta, kappa, Ak0) = theta
        c3 = (0.0 < Ak0 <= 5.0)
        c4 = True
    else:
        (beta, kappa) = theta
        c3 = True
        c4 = True
    c1 = (0 <= beta <= 6)
    c2 = (0 <= kappa)
    if (c1 and c2 and c3 and c4):
        return 0.0
    return (- np.inf)