timothydmorton / isochrones

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

modify add_models() #28

Open nonsk131 opened 8 years ago

nonsk131 commented 8 years ago

modify add_models() so that it assigns _0 to the brightest star in the system

timothydmorton commented 8 years ago

Great, thanks-- I'm looking over this and have a few suggestions. I'll get back to you soon (have to go to a meeting now but will be back and then will go through this and send comments).

timothydmorton commented 8 years ago

Actually, I'm going to be delayed a bit more, but I will get back to this hopefully later today.

timothydmorton commented 8 years ago

OK, a few initial comments:

Anyway, this is a good start on a tough problem! I'll be thinking about this more; stay tuned! Feel free to use this implementation if it works for your current synthetic simulations, but our goal will be something a bit more robust.

timothydmorton commented 8 years ago

Another solution that might be even more robust is just to have the _get_leaves and select_leaves functions to by default return leaves in some sort of ordered fashion, since this is currently what dictates the labels of the model nodes...

Or to just raise a warning if things end up out of order, and then have a separate method do the rearranging if desired?... I'm just brainstorming here, the best solution isn't obvious to me!