bd-j / prospector

Python code for Stellar Population Inference from Spectra and SEDs
http://prospect.readthedocs.io
MIT License
153 stars 71 forks source link

Issue on page /quickstart.html #323

Closed roccorollo closed 3 months ago

roccorollo commented 4 months ago

Hi

This is the first time I install this software. I have installed the default version (not the development one, after installing requirements, including fsps). It seems that the code cannot find an important library file xsp_feh-2.00.spec The problem raises at the step "get a source" after CSPSpecBasis(zcontinuous=1)

I get the error: Fixed Parameters: (name: value [, depends_on])

zred: [0.07260209] sfh: [4] imf_type: [2] dust_type: [0] add_neb_emission: [ True] add_neb_continuum: [ True] nebemlineinspec: [ True] gas_logz: [0.] <function stellar_logzsol at 0x72a980ca5ca0> gas_logu: [-2.] SPS_SETUP ERROR: xsp_feh-2.00.spec cannot be opened

similarly, in the tutorial, when running python demo_params.py --objid=0 --emcee --optimize --outfile=demo_obj0_emcee

I get the same error: SPS_SETUP ERROR: xsp_feh-2.00.spec cannot be opened

bd-j commented 4 months ago

This is an issue with the fsps installation. Can you try

echo $SPS_HOME
python -c "import fsps; print(fsps.__version__)"
cd $SPS_HOME
git rev-parse HEAD
roccorollo commented 4 months ago

Thank you. Here my output:


(py38) rossi@Inspiron-3020:~/work/redshift/prospector$ echo $SPS_HOME
/home/rossi/soft/git/fsps
(py38) rossi@Inspiron-3020:~/work/redshift/prospector$ python -c "import fsps; print(fsps.__version__)"
0.4.3
(py38) rossi@Inspiron-3020:~/work/redshift/prospector$ cd $SPS_HOME
(py38) rossi@Inspiron-3020:~/soft/git/fsps$ git rev-parse HEAD
4c527a97f055f96ad6d77d975d84b65b07f298c3
(py38) rossi@Inspiron-3020:~/soft/git/fsps$
bd-j commented 4 months ago

Thanks - the python-fsps version is a bit out of date, the current release is 0.4.6. Once you've updated it should work.

roccorollo commented 4 months ago

Thanks. I could install last version only after switching to python 3.10. Now it works :-) Sorry if I missed this requirement (maybe 3.9 was enough, but I did not check) :-(

bd-j commented 4 months ago

Thanks for the info, I will try to make sure that requirement is noted.