timothydmorton / isochrones

Pythonic stellar model grid access; easy MCMC fitting of stellar properties
http://isochrones.readthedocs.org
MIT License
120 stars 62 forks source link

Bug in the demo.ipynb #49

Closed elisabethadams closed 7 years ago

elisabethadams commented 7 years ago

Running through the demo notebook as downloaded, I get to cell 10

dar = Dartmouth_Isochrone()
dar.bands #default bands

and get the following error:


---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-10-45bde7a2afff> in <module>()
----> 1 dar = Dartmouth_Isochrone()
      2 dar.bands #default bands

//anaconda/lib/python2.7/site-packages/isochrones/dartmouth/isochrone.pyc in __init__(self, bands, afe, y, **kwargs)
     87                            df['feh'].values,df['MMo'].values, df['LogLLo'].values,
     88                            10**df['LogTeff'].values,df['LogG'].values,mags,tri=TRI,
---> 89                            **kwargs)
     90 
     91     def agerange(self, m, feh=0.0):

//anaconda/lib/python2.7/site-packages/isochrones/isochrone.pyc in __init__(self, m_ini, age, feh, m_act, logL, Teff, logg, mags, tri, minage, maxage, ext_table)
    141         else:
    142             self.tri = tri
--> 143             self.mass = interpnd(self.tri,m_act)
    144 
    145         self._data = {'mass':m_act,

scipy/interpolate/interpnd.pyx in scipy.interpolate.interpnd.LinearNDInterpolator.__init__ (scipy/interpolate/interpnd.c:4934)()

scipy/interpolate/interpnd.pyx in scipy.interpolate.interpnd.NDInterpolatorBase.__init__ (scipy/interpolate/interpnd.c:2298)()

scipy/spatial/qhull.pyx in scipy.spatial.qhull.Delaunay.points (scipy/spatial/qhull.c:18057)()

AttributeError: 'Delaunay' object has no attribute '_points'
timothydmorton commented 7 years ago

Yes, someone else has pointed this out, too. Check out the solution suggested in #43.