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.3.tar.gz (68.2 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.3-py3-none-any.whl (74.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bayspec-0.3.3.tar.gz
  • Upload date:
  • Size: 68.2 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.3.tar.gz
Algorithm Hash digest
SHA256 1cf6d07001acda199e8375407bce19c3a54d5cb7af99994477973e3d78306c8e
MD5 a728b15154e06d03626efa767f2ebe02
BLAKE2b-256 4790154cbfe9d763e61828b9a93b544f93d12d510c2f8948cb13bf50b5440154

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bayspec-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 74.3 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bb1668655ea3c4c3316ed1aa6b446aa1133f7aa2df8b994bf408306eee54411c
MD5 d5d9f39d7e1e03af8a1b73da596e2f31
BLAKE2b-256 5c0999e503481c5c99d5094a7a639f2b16d38f04d4254f536abb50dfae09faa5

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