Comments (7)
Thanks for the report! It looks like there's an issue with the most recent source distribution on PyPI and it doesn't include the FSPS source files that it should. We'll need to fix that, but in the meantime, you could install from source using the instructions here replacing the pip install line with:
- python -m pip install .
+ FFLAGS="-DMIST=0 -DPADOVA=1 -DMILES=1 -DBASEL=0" python -m pip install .
from python-fsps.
When you install python-fsps
from source it also downloads a full copy of FSPS, so you can reuse that copy if you want, but it should also be fine to use your current SPS_HOME
setup. That comment in the docs is a bit of an aside, you're not required to run the export SPS_HOME=$(pwd)/src/fsps/libfsps
command.
from python-fsps.
Hi, you might try updating the external FSPS, as some of the data files were updated recently (which is captured by the FSPS submodule of python-FSPS, but must be explicitly updated in an external FSPS)
cd $SPS_HOME
git pull
Hope this helps.
from python-fsps.
Thank you for your prompt feedback!
The fact that I didn't use this method is that I didn't understand. I have downloaded FSPS and made the environment variable point to the fsps installation folder next install python-fsps from PyPl. Does this method mean that I don't need to download FSPS again and just point the environment variable 'export SPS_HOME=$(pwd)/src/fsps/libfsps' to the python-fsps installation directory?
from python-fsps.
Thank you! Great and professional reply! My problem is solved and will close this issue.
from python-fsps.
I turned this back on because one thing I found is that this doesn't work when SPS_HOME points to external FSPS. 'SPS_SETUP ERROR: xsp.lambda cannot be opened'
like this test:
$python -c "import fsps; sp = fsps.StellarPopulation(); print(sp.libraries)"
SPS_SETUP ERROR: xsp.lambda cannot be opened
When SPS_HOME points to $(pwd)/src/fsps/libfsps.,it works again. I don't know why, but I think it's worth telling you. And then I'll close it again.
from python-fsps.
Thank you for your answer, which works well!
from python-fsps.
Related Issues (20)
- Tests are extremely slow on Windows
- Segmentation fault when importing fsps HOT 13
- Adding New Filters Documentation
- wrong installation? HOT 10
- Odd behavior with optical emission lines HOT 4
- Re-enable Windows wheel builds HOT 1
- Emission line extinction mechanism HOT 1
- Emission lines from post-AGB UV radiation
- I cannot install python-fsps HOT 2
- changing the emission line velocity width HOT 8
- Make cloudy_dust a setup variable
- Not able to change isochrone on Mac M1 HOT 1
- SPS_SETUP ERROR: wavelength grid cannot be opened HOT 4
- Installation on Windows 11 Issue: "Invalid Escape Character" with pip Install HOT 1
- Error in SPS_SETUP HOT 4
- Build doesn't work on Windows HOT 1
- Clarification about SSP vs CSP generation HOT 2
- Question on AGN HOT 1
- Dead Kernel Upon sp = fsps.StellarPopulation(....)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-fsps.