ArtificialStellarPopulations / ArtPop

✨ ArtPop – Building artificial galaxies one star at a time.
https://artpop.readthedocs.io/en/latest/
MIT License
61 stars 10 forks source link

select stellar phases for a composite population #8

Closed saharsh1 closed 2 years ago

saharsh1 commented 2 years ago

The select phase method of an ssp be inherited by a composite population?

For example, following the tutorial example of combining young, intermediate and old populations, we do something like csp = ssp_old + ssp_intermediate + ssp_young

Then, is there an option to select the phases directly on the resulting population, rather than going back to the single ones and combining them again? For example:

# generate boolean phase masks
MS  = csp.select_phase('MS')
RGB = csp.select_phase('RGB')
AGB = csp.select_phase('AGB')