timothydmorton / isochrones

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

AttributeError: 'MISTEvolutionTrackGrid' object has no attribute '_age_grid' #88

Closed bjnorfolk closed 5 years ago

bjnorfolk commented 5 years ago

Hi, I've just installed the isochrones package on my university's supercomputer within a conda environment. I'm running python 3.7.3 and when I attempt to test generating synthetic properties of stars from your docs page I keep getting the attribute error "AttributeError: 'MISTEvolutionTrackGrid' object has no attribute '_age_grid' "

Any advice here would be greatly appreciated,

Cheers,

image

timothydmorton commented 5 years ago

try running tracks.initialize(). I should mention that in the docs as something you should do when running for the first time (both with an isochrone grid and evolution track grid). Sometimes it is done automatically, but perhaps with .generate it doesn't trigger the right things if they haven't been computed already.

bjnorfolk commented 5 years ago

works now

Thanks