Skip to main content

PyPI PyPI - Python Version PyPI - License

bajes [baɪɛs] is a Python software for Bayesian inference developed at Friedrich-Schiller-Universtät Jena and specialized in the analysis of gravitational-wave and multi-messenger transients. The software is designed to be state-of-art, simple-to-use and light-weighted with minimal dependencies on external libraries.

Installation

bajes is compatible with Python v3.7 (or higher) and it is built on modules that can be easily installed via pip. The mandatory dependencies are numpy, scipy and astropy. However, the user might need to download some further packages. See INSTALL for more information.

Modules

bajes provides an homonymous Python module that includes:

  • bajes.inf: implementation of the statistical objects and Bayesian workflow,
  • bajes.obs: tools and methods for data analysis of multi-messenger signals. For more details, visit gw_tutorial.

Inference

The bajes package provides a user-friendly interface capable to easily set up a Bayesian analysis for an arbitrary model. Providing a prior file and a likelihood function, the command

python -m bajes -p prior.ini -l like.py -o /path/to/outdir/

will run a parameter estimation job, inferring the properties of the input model. For more details, visit inf_tutorial or type python -m bajes --help.

Pipeline

The bajes infrastructure allows the user to set up a pipeline for parameters estimation of multi-messenger transients. This can be easily done writing a configuration file, that contains the information to be passed to the executables. Subsequently, the following command,

bajes_pipe config.ini

will generates the requested output directory, if it does not exists, and the pipeline will be written into a bash executable (/path/to/outdir/jobname.sub). For more details, visit conifg_example.

The GW pipeline incorporates an interface with reduced-order-quadratude (ROQ) interpolants. In particular, the ROQ pipeline relies on the output provided by JenpyROQ.

Credits

bajes is developed at the Friedrich-Schiller-Universität Jena, visit CREDITS for more details.

If you find bajes useful in your research, please include the following citation in your publication,

@article{Bajes:2021,
         author = "Breschi, Matteo and Gamba, Rossella and Bernuzzi, Sebastiano",
         title = "{Bayesian inference of multimessenger astrophysical data: Methods and applications to gravitational waves}",
         eprint = "2102.00017",
         archivePrefix = "arXiv",
         primaryClass = "gr-qc",
         doi = "10.1103/PhysRevD.104.042001",
         journal = "Phys. Rev. D",
         volume = "104",
         number = "4",
         pages = "042001",
         year = "2021"
        }

Acknowledgement

bajes has benefited from open source libraries, including the samplers,

and the gravitational-wave analysis packages,

We also acknowledge the LIGO-Virgo-KAGRA Collaboration for maitaining the GWOSC.

Release files for bajes 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bajes 1.3.0
File Size Uploaded
bajes-1.3.0.tar.gz 17.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for bajes 1.3.0
File Interpreter ABI Platform
bajes-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 34.7 MB

Release files / bajes-1.3.0.tar.gz

Download URL bajes-1.3.0.tar.gz
Size 17.3 MB
Tags Source
SHA-256 checksum
How to use checksums
ff6cbc07abcf45d1c5dd950cde5afb4623d9f90b6ddbc231500fbcbdec6d4410
BLAKE2b-256 checksum
How to use checksums
ad2ceb994b1b66607ca1c519f074922048900e8cb87ad74ed5ed5704700f7da6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.19

Release files / bajes-1.3.0-py3-none-any.whl

Download URL bajes-1.3.0-py3-none-any.whl
Size 17.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
d5858198d5334cea8b5cde8ce34d09d12d070191b98a48bd80eef449455555b3
BLAKE2b-256 checksum
How to use checksums
e8d731a928cdf3914e87d3671731e00304dfe810cb568e96b23b9482f541959c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.19

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.0

2 release files

0.3.0

1 release file

0.2.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page