SkillAgentSearch skills...

Bayspec

A Bayesian inference-based spectral fitting tool for multi-dimensional and multi-wavelength astrophysical data.

Install / Use

/learn @jyangch/Bayspec
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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.

Related Skills

View on GitHub
GitHub Stars13
CategoryProduct
Updated20d ago
Forks3

Languages

Python

Security Score

90/100

Audited on Mar 13, 2026

No findings