Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using sps.isochrone() with BPASS #178

Closed
pzyao opened this issue May 12, 2022 · 3 comments
Closed

Using sps.isochrone() with BPASS #178

pzyao opened this issue May 12, 2022 · 3 comments
Assignees

Comments

@pzyao
Copy link

pzyao commented May 12, 2022

Hi,

I am using the python fsps code to create a simple stellar population which I then want to generate a list of isochrones at different ages. Currently we are experimenting with different isochrone libraries such as MIST, BPASS, and GENEVA. When using MIST isochrones, I could easily do it with the sps.isochrones() function. But after installing python-fsps in another environment with:
FFLAGS=“-DMIST=0 -DBPASS=1” python -m pip install fsps --no-binary fsps
I successfully switched the libraries to (b'bpss', b'bpass', b'DL07')

Since the documentation says

BPASS (in this case the spectral library and SSP parameters cannot be changed),

I created the SSP with just: sps = fsps.StellarPopulation()
and attempted to use the sps.isochrones() function, but gets the following warnings and errors for BPASS:
COMPSP WARNING: log(Tmax)>10.2 yrs - linear extrapolation beyond this point for log(Tmax)=: 10.199999999999999
opt/anaconda3/envs/BPASS/lib/python3.8/site-packages/fsps/fsps.py:862: UserWarning: loadtxt: Empty input file: "/Users/XXXX/fsps_BPASS/OUTPUTS/BPASS_sfh1_1.cmd" cmd_data = np.loadtxt(

I know BPASS is different because they are SSP SEDs, but I am not sure how to use these to make the isochrone table analogous to using sps.isochrones() with MIST

Thanks in advance!

@dfm dfm assigned bd-j May 13, 2022
@bd-j
Copy link
Collaborator

bd-j commented May 13, 2022

Hi @pzyao, it is not possible to use fsps.StellarPopulation().isochrones() with the BPASS models, precisely because for these models FSPS only has access to the integrated SSP spectra, not individual stars along an isochrone. More generally the concept of a traditional isochrone is not quite appropriate for BPASS models since two stars of the same mass and age can be in different locations on the HR diagram depending on the (distribution of) binary properties.

But isochrones() should probably give a more informative error message when BPASS is being used.

The "COMPSP WARNING" is due to check in FSPS that is not tailored correctly for BPASS models. It can be safely ignored, but the check should be updated in FSPS.

@pzyao
Copy link
Author

pzyao commented May 18, 2022

I see! That's unfortunate, but thank you for answering my question.

@bd-j
Copy link
Collaborator

bd-j commented May 23, 2022

No problem, sorry it wasn't a more useful answer!

@bd-j bd-j closed this as completed May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants