isochrones/starmodel_old.py
def lnpost(self, p, use_local_fehprior=True):
        """
        log-posterior of model at given parameters
        """
        if not self.use_emcee:
            mass, age, feh, dist, AV = (p[0], p[1], p[2], p[3], p[4])
        else:
            if len(p)==5:
                fit_for_distance = True
                mass,age,feh,dist,AV = p
            elif len(p)==3:
                fit_for_distance = False
                mass,age,feh = p
                dist = None
                AV = None
            
        return (self.lnlike(p) + 
                self.lnprior(mass, age, feh, dist, AV,
                             use_local_fehprior=use_local_fehprior))

        log-posterior of model at given parameters
        
log-posterior of model at given parameters
log - posterior of model at given parameters
def lnpost(self, p, use_local_fehprior=True):
        if not self.use_emcee:
            mass, age, feh, dist, AV = (p[0], p[1], p[2], p[3], p[4])
        else:
            if len(p)==5:
                fit_for_distance = True
                mass,age,feh,dist,AV = p
            elif len(p)==3:
                fit_for_distance = False
                mass,age,feh = p
                dist = None
                AV = None
        return (self.lnlike(p) + 
                self.lnprior(mass, age, feh, dist, AV,
                             use_local_fehprior=use_local_fehprior))
def lnpost ( self , p , use_local_fehprior = True ) : if not self . use_emcee : mass , age , feh , dist , AV = ( p [ 0 ] , p [ 1 ] , p [ 2 ] , p [ 3 ] , p [ 4 ] ) else : if len ( p ) == 5 : fit_for_distance = True mass , age , feh , dist , AV = p elif len ( p ) == 3 : fit_for_distance = False mass , age , feh = p dist = None AV = None return ( self . lnlike ( p ) + self . lnprior ( mass , age , feh , dist , AV , use_local_fehprior = use_local_fehprior ) )
log-posterior of model at given parameters
log - posterior of model at given parameters
"""
        log-posterior of model at given parameters
        """
self
p
use_local_fehprior