Comments (10)
I assume this has something to do with a version mismatch between your SPS_HOME
installation and the Python bindings, but @bd-j might have more specific ideas!
from python-fsps.
Agreed, you might try cd $SPS_HOME; git pull
and it would be good to know which version of python-fsps you have installed.
from python-fsps.
Thank you both for your quick replies!
I did cd $SPS_HOME; git pull
and it prints "Already up to date". I checked the version and it is 0.4.2.
Also I tried a clean install with
export SPS_HOME="/fsps"
git clone https://github.com/cconroy20/fsps.git $SPS_HOME
python3 -m pip install fsps
Then I try to change stellar libraries to set BASEL
pip uninstall fsps
FFLAGS="-DMILES=0 -DBASEL=1" python3 -m pip install fsps --no-binary fsps
with no problems so far...
But when I run an fsps script I get this again
" SPS_SETUP ERROR: wavelength grid cannot be opened", while if I switch back to MIST everything run smoothly.
from python-fsps.
UPDATE
I tried to install older versions of fsps with no succes. I even tried to install the final version of fsps to other computers and older versions of Ubuntu with no luck either... and I have the same issue, everything works up until I change from "MILES" to "BASEL". Do you have any suggestions or ideas about what I am doing wrong?
from python-fsps.
there's a PR on fsps that I think solves this issue (cconroy20/fsps#64), but the python-fsps submodule will have to be updated in python-fsps. Sorry, I'm traveling at the moment so progress has been slow
from python-fsps.
Ok, no worries! I figured you might be busy so I tried to remove any variables that might causing the problem from my side. As far as the [(https://github.com/cconroy20/fsps/pull/64)] does not seem to do anything, still the same error. By the way, because I see that there has been different was for installation, can you suggest me a "secure" installation procedure (I do this https://dfm.io/python-fsps/current/installation/)? is this what I all need for a clean install? :
export SPS_HOME="/fsps"
git clone https://github.com/cconroy20/fsps.git $SPS_HOME
python3 -m pip install fsps
from python-fsps.
As far as the cconroy20/fsps#64 does not seem to do anything, still the same error.
These Python bindings are built against a specific commit to the FSPS repository so unless you're installing from this GitHub repo, I don't think that the workflows you've been using would integrate that change. Currently, the SPS_HOME
copy of FSPS is only used for data, not for source code.
In order to test that, you should be able to try something like:
python3 -m pip uninstall fsps
FFLAGS="-DMILES=0 -DBASEL=1" python3 -m pip install git+https://github.com/dfm/python-fsps.git
which will reinstall python-fsps
from the GitHub version, which does include cconroy20/fsps#64 already.
In terms of clean install: your recommended steps should do the trick (although you may want to uninstall fsps
first)!
from python-fsps.
Hi,
Yes, that works! Thank you very much! I can switch to BASEL now with no issue.
from python-fsps.
Awesome!
@bd-j — I think we should probably run another release to PyPI in that case. I'm happy to do it if you agree!
from python-fsps.
There's a couple small changes coming this week then I agree we should push a new version.
from python-fsps.
Related Issues (20)
- Issue importing HOT 2
- solar metallicity value saved in sp object HOT 4
- Problem with MILES Spectral Library and Python FSPS HOT 3
- Choosing spectral and isochrone libraries (Windows) HOT 3
- Obtain spectral indices for stellar population HOT 3
- Failing to add new filters on Macbook M1 HOT 8
- Creating a Star-forming Galaxy from sps.isochrones() and its log(weight) output HOT 2
- Using sps.isochrone() with BPASS HOT 3
- arm64 architecture error HOT 2
- No emission lines for a SSP HOT 2
- sfh=1, updating both sf_start and tage via Prospector HOT 8
- Handle deprecation of numpy.distutils HOT 1
- Feature request: Wheels and/or docs for M1 macs
- v0.4.2 dev: nebular emission not properly added for very young stellar populations HOT 6
- Tests are extremely slow on Windows
- Segmentation fault when importing fsps HOT 13
- Adding New Filters Documentation
- Odd behavior with optical emission lines HOT 4
- Re-enable Windows wheel builds HOT 1
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.