def __init__(self,m_ini,age,feh,m_act,logL,Teff,logg,mags,tri=None,<EOL>minage=None, maxage=None, ext_table=False):
self.minage = age.min()<EOL>self.maxage = age.max()<EOL>self.minmass = m_act.min()<EOL>self.maxmass = m_act.max()<EOL>self.minfeh = feh.min()<EOL>self.maxfeh = feh.max()<EOL>self.ext_table = ext_table<EOL>if minage is not None:<EOL><INDENT>logging.warning("<STR_LIT>" +"<STR_LIT>")<EOL>self.minage = minage<EOL><DEDENT>if maxage is not None:<EOL><INDENT>logging.warning("<STR_LIT>" +"<STR_LIT>")<EOL>self.maxage = maxage<EOL><DEDENT>L = <NUM_LIT:10>**logL<EOL>if tri is None:<EOL><INDENT>points = np.zeros((len(m_ini),<NUM_LIT:3>))<EOL>points[:,<NUM_LIT:0>] = m_ini<EOL>points[:,<NUM_LIT:1>] = age<EOL>points[:,<NUM_LIT:2>] = feh<EOL>fn = interpnd(points,m_act)<EOL>self.tri = fn.tri<EOL><DEDENT>else:<EOL><INDENT>self.tri = tri<EOL>self.mass = interpnd(self.tri,m_act)<EOL><DEDENT>self._data = {'<STR_LIT>':m_act,<EOL>'<STR_LIT>':logL,<EOL>'<STR_LIT>':logg,<EOL>'<STR_LIT>':np.log10(Teff),<EOL>'<STR_LIT>':mags}<EOL>self._props = ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']<EOL>self.bands = list(mags.keys())<EOL>self._mag = {band:interpnd(self.tri,mags[band]) for band in self.bands}<EOL>self.mag = {b : self._mag_fn(b) for b in self.bands}<EOL>
Warning: if tri object not provided, this will be very slow to be created.