Closed zychen-astro closed 2 years ago
Updates:
The previous plot was generated with prospect and python-fsps version of
prospect 1.1.0
fsps 0.4.2.dev20+g8476280
But they worked fine when I install the stable version of python-fsps (see attached figure)
prospect 1.1.0
fsps 0.4.1
But I need the 0.4.2 dev version of python-fsps as I hope to adopt the SMC attenuation curve. Is there a issue with the 0.4.2 dev version?
Thanks! I assume this is something to do with a version mismatch between FSPS and the Python bindings, but @bd-j will be able to say more, I'm sure.
sorry for the slow reply. Trying to track this down, it appears to have been introduced somewhere between 3297748 (correct nebular lines) and 2b61492 (incorrect nebular lines). The only actual change to the source code there was to FSPS itself - some unintended changes were made and then supposedly reverted (manually), but the add_nebular module was potentially affected. Strange.
anyway, till I get this sorted in FSPS you can, in the python-fsps repo, do
git checkout 3297748
git submodule update
python -m pip install .
ok, I found the bug in FSPS. I'll update there and run the update fsps workflow (which is still failing to build wheels on either macos or windows depending on the workflow we use)
@zychen-astro This should now be resolved by #190, it at least works for me locally. In the python-fsps repo
git checkout main
git pull
git submodule update
python -m pip uninstall fsps
python -m pip install .
Thank you, Ben and Dan! I confirmed that the nebular emission works as expected. I'll close this issue now.
Hi,
I used python-fsps to produce the SEDs for a 3 Myr CSFH, but the output spectrum does not look quite right -- the emission lines are too weak and the nebular continuum is not added. But I checked that the add_neb_emission, add_neb_continuum, and nebemlineinspec are all turned on.
The used python-fsps version is the current dev version, and I tested with $SPS_HOME to both the one in the python-fsps directory, and the FSPS I installed separately.
However, when another member of the team ran the same code on another machine, the results looks reasonable (i.e., compared to another code). I am wondering if there is some configuration issue with my own installment of the package (fsps, python-fsps, and prospector).
Thanks! Zuyi
The code to reproduce the issue are as follows, and the resulting SEDs are also shown (with and without nebular emission)