Comments (6)
What OS are you using?
What version of sherpa are you using?
How did you install sherpa?
from sherpa.
I am using a Mac! The sherpa version is 4.16, and I installed it using the pip install.
from sherpa.
The pip install does not contains XSPEC by itself. You can install XSPEC yourself before and then configure the build to find and connect to your local XSPEC installation before you call pip see https://sherpa.readthedocs.io/en/4.16.0/install.html#build-from-source . It's certainly possible, but it might not be worth the effort.
If you can install from conda, we have a conda channels that has both XSPEC and Sherpa available:
conda create -n sherpaxsepc -c https://cxc.cfa.harvard.edu/conda/ciao -c conda-forge \
sherpa ciao-contrib python=3.11
or, if you look at Chandra data, you might want to use the full CIAO installation (which comes with Sherpa and XSPEC: https://cxc.cfa.harvard.edu/ciao/threads/ciao_install_conda/
It is also possible to just install the dependencies (in particular XSPEC with conda) and compile the rest of Sherpa yourself: https://sherpa.readthedocs.io/en/4.16.0/developer/index.html#install-from-source-in-conda
What's best depends a bit on what else you need in your environment, but if you want XSPEC, going with conda is certainly the easiest.
from sherpa.
The XSPEC support requires that you build Sherpa yourself - we don't have a [*] wheel with XSPEC support (for various reasons, a lot to do with XSPEC itself).
So you would have to follow the XSPEC section of
https://sherpa.readthedocs.io/en/4.16.0/install.html#building-from-source
Note that
- we currently don't support XSPEC 12.14.0 (there is a PR to do so but it hasn't been merged),
- building XSPEC and then getting Sherpa to build against it is known to be tricky on macOS.
[*] I would suggest that you install CIAO since this comes with Sherpa and XSPEC support - for that you'd need to follow https://cxc.cfa.harvard.edu/ciao/download/ - I would suggest the conda installation rather than the ciao-install version.
from sherpa.
thank you for your suggestions! I will try to instal CIAO and see if that works.
from sherpa.
I'm going to close this. Hope the CIAO installation goes easily.
from sherpa.
Related Issues (20)
- can not use spawn or forkserver methods for multiprocessing HOT 1
- Should we replace NoNewAttributesAfterInit with __slots__ HOT 1
- Inconsistent naming for axis between 2D models and 2D data HOT 1
- 2D data looks crazy - is it mixing up x0/x1 in some cases? HOT 5
- plot class hierarchy issues
- build issues on Mac OS with arm64 HOT 3
- How to load a pha object into an UI session HOT 3
- Looking into EstNewMin
- Switch numpy.matrix to numpy.ndarray
- note about occasional ocdecov failures
- Test fails: signal only works in main thread of the main interpreter HOT 8
- x-ray polarization stats HOT 1
- arch build has switched to using python 3.12 so the weekly build now fails
- sherpa_test requires matplotlib HOT 5
- Pytest warning: PytestUnknownMarkWarning: Unknown pytest.mark.xdist_group` HOT 2
- XSPEC tests can crash on macOS with XSPEC 12.14.0 HOT 1
- add an optimizer/stat to the UI layer
- ui layer does not get sent any typing annotations HOT 1
- What to do with NoGIL and Python 3.13 HOT 2
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 sherpa.