Closed dfm closed 3 years ago
I think this should be fixed by changing the lines
from . import ev, list_filters
absfile = os.path.join(ev, "OUTPUTS", outfile + ".cmd")
to
from . import list_filters
absfile = os.path.join(os.environ["SPS_HOME"], "OUTPUTS", outfile + ".cmd")
We should also audit the code to see if this hanging import is anywhere else and the isochrones
method should also have a test!
I'll try to fix it next week, but I'd also be happy to review a pull request!
Hi @dfm, I have tried making the suggested changes in the fsps.py file, but this is not resolving the issue.
I tried the suggested changes and it worked for me (PR coming soon). Also, just to note that the value of params["sfh"]
is irrelevant for isochrones()
; only parameters listed in params.ssp_params
matter and the weights only come from the IMF, not from the SFH.
Also I don't see ev
anywhere else in the code.
I have installed FSPS using "python -m pip install fsps==0.3.0rc1"
Now when I am running the code written as
getting the error
I am not able to understand how to resolve this error. Any suggestions would be appreciated. Thanks!
Originally posted by @Dh-hgi in https://github.com/dfm/python-fsps/issues/141#issuecomment-786569880