Coder Social home page Coder Social logo

issues with xspec about sherpa HOT 6 CLOSED

perischind avatar perischind commented on June 16, 2024
issues with xspec

from sherpa.

Comments (6)

DougBurke avatar DougBurke commented on June 16, 2024

What OS are you using?
What version of sherpa are you using?
How did you install sherpa?

from sherpa.

perischind avatar perischind commented on June 16, 2024

I am using a Mac! The sherpa version is 4.16, and I installed it using the pip install.

from sherpa.

hamogu avatar hamogu commented on June 16, 2024

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.

DougBurke avatar DougBurke commented on June 16, 2024

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.

perischind avatar perischind commented on June 16, 2024

thank you for your suggestions! I will try to instal CIAO and see if that works.

from sherpa.

DougBurke avatar DougBurke commented on June 16, 2024

I'm going to close this. Hope the CIAO installation goes easily.

from sherpa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.