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

Problem generating a stellar population with StarPopulation #122

Open mmmikemon opened 4 years ago

mmmikemon commented 4 years ago

When I use StarPopulation to generate a stellar population, I am able to correctly set the bounds on the input parameters feh, distance, and AV if I use the FlatPrior distribution. However, when I try to use StarFormationHistory to set the age range of the stars, I am unable to confine it to my requested range. In fact, the average age of the stars usually lies outside my requested range. I don't know if this is a problem with the code or if I'm simply not using it correctly.

timothydmorton commented 4 years ago

The StarFormationHistory takes a distribution in Gyr, but the age column is in log10(yr). Apologies for this being confusing... does this answer your question, at least partially?