Closed oconnorb closed 1 year ago
Hi @oconnorb, can you try updating the fortran fsps? cd $SPS_HOME; git pull
. If that does not work you might try installing the development version of python-fsps: https://dfm.io/python-fsps/current/installation/#installing-development-version
Hi Ben,
Thanks very much for your reply. Your suggestion worked and the code is now running properly. I will do this in the future instead of using pip.
Thanks! Brendan
Hi @oconnorb, glad it's working, I think this issue will be resolved in the next version to be released through pip
Hi,
I was re-installing prospector in a fresh conda environment, which prior to installing prospector and its dependencies had only the stsci astroconda tools and python 3.7.16. Prospector and its dependencies were installed through pip.
However, in running my jupyter notebooks for prospector modeling I encountered the kernel crashing at a certain stage. I isolated this to the below code which returns "SPS_SETUP ERROR: wavelength grid cannot be opened" when calling the "CSPSpecBasis" task within prospector.
Any help would be greatly appreciated!
Versions: numpy: 1.21.5 scipy: 1.7.3 h5py: 3.8.0 fsps: 0.4.2 prospect: 1.2.0
import fsps import sedpy import prospect
def build_sps(zcontinuous=1, **extras): """ :param zcontinuous: A vlue of 1 insures that we use interpolation between SSPs to have a continuous metallicity parameter (
logzsol
) See python-FSPS documentation for details """ from prospect.sources import CSPSpecBasis sps = CSPSpecBasis(zcontinuous=zcontinuous) return spssps = build_sps()