Skip to main content

Astronomical spectrum fitting tool

Project description

Welcome To BAYSPEC 👋

A Bayesian Inference-based Spectral Fitting Tool for High-energy Astrophysical Data.

PyPI - Version License: GPL v3

Features

  • Bayesian inference-based: implemented by MCMC (e.g., emcee) or nested sampling (e.g., multinest)
  • Multi-dimensional: enabling the fit of time-evolving spectra with time-involved physical models
  • Multi-wavelength: supporting for the joint fitting to multi-wavelength astronomical spectra
  • Friendly interface: easy-to-use web application developed with streamlit
  • Others: simultaneous fitting of multi-spectra and multi-models, freely combining available models and add new model

Installation

BaySpec is available via pip:

$ pip install bayspec

Utilize multinest sampler

If you want to use Multinest for Bayesian inference, you can follow the instructions in the pymultinest documentation to install it.

Access Astromodels models

To utilize models from Astromodels, ensure that Astromodels is installed on your system.

Access Xspec models

To utilize models from Xspec, ensure that both HEASoft and Xspec v12.12.1+ are installed on your system. After confirming that HEASoft environment is properly initialized, then you need install xspec-models-cxc.

NOTE: BaySpec currently only supports Additive and Multiplicative models in Xspec.

BaySpec App

BaySpec App provides an easy-to-use web application implemented using streamlit.

Open in Streamlit

Documentation

If you wish to learn about the usage, you may check the examples or read the documentation.

License

BaySpec is distributed under the terms of the GPL-3.0 license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bayspec-0.1.18.tar.gz (65.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bayspec-0.1.18-py3-none-any.whl (71.7 kB view details)

Uploaded Python 3

File details

Details for the file bayspec-0.1.18.tar.gz.

File metadata

  • Download URL: bayspec-0.1.18.tar.gz
  • Upload date:
  • Size: 65.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for bayspec-0.1.18.tar.gz
Algorithm Hash digest
SHA256 4a81ed0ad17483574d2902ff798f5f6c0f3edb51a7299ff4636fefea0595e7bd
MD5 4e94be33a5dd5e96180ca0d77b05d852
BLAKE2b-256 77d23fca633ebb6d80afc14edc8fc9917fceb9d1153db3c078a642124f62d5ff

See more details on using hashes here.

File details

Details for the file bayspec-0.1.18-py3-none-any.whl.

File metadata

  • Download URL: bayspec-0.1.18-py3-none-any.whl
  • Upload date:
  • Size: 71.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for bayspec-0.1.18-py3-none-any.whl
Algorithm Hash digest
SHA256 a2030291f32cbf6635dcfe3e7f68c076b4ea402d30533b7c5d3ad380e07fd7b1
MD5 4ffe024dda3d2d0cd0254358c99c2269
BLAKE2b-256 0eb23f3690bbda3747a2c8a5f9155a523a9d8460bf9899900024e92c7a731655

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page