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.3.7.tar.gz (71.8 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.3.7-py3-none-any.whl (78.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bayspec-0.3.7.tar.gz
Algorithm Hash digest
SHA256 c8740ab77a9b4727ada297ce6e875eb66c5deeae2b98a444a37a4731d23a2247
MD5 72f0c8e5cfd5b127ce9444fa5bac7f58
BLAKE2b-256 d6b40f4019742d96fe4b726729b6f4682d5ec5ca4202e6afeb700e61beea9273

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bayspec-0.3.7-py3-none-any.whl
  • Upload date:
  • Size: 78.1 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.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 df621728739859c7ed9f04241ba9714d9be3b366ccf351e3c8fb44a50ee27f1b
MD5 edd449467e68c7ca8746ddf9b86578ff
BLAKE2b-256 1220f3d1e1e63c1e024731a559a22ea19e8416caac57ef0ee63a6daa6ad1ead9

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