Skip to main content

Bayesian Analysis of Galaxies for Physical Inference and Parameter EStimation

Bagpipes is a state of the art code for generating realistic model galaxy spectra and fitting these to spectroscopic and photometric observations. For further information please see the Bagpipes documentation at bagpipes.readthedocs.io.

Installation

Bagpipes can be installed with pip:

pip install bagpipes

Please note you cannot run the code just by cloning the repository as the large grids of models aren’t included.

Sampling algorithms within Bagpipes

The default sampler (and historically the only option) for fitting models to data is the MultiNest code, however this requires separate installation, which can be challenging on some systems. Bagpipes is now also compatible with the pure Python nautilus nested sampling algorithm, which is now installed by default along with Bagpipes, and will be automatically used for fitting if MultiNest is not installed. Even if you are used to using Bagpipes with Multinest, you may wish to try out Nautlus, as this may yield faster and/or more accurate results in some circumstances. For more information please see the bagpipes documentation.

Published papers and citing the code

Bagpipes is described primarily in Section 3 of Carnall et al. (2018), with further development specific to spectroscopic fitting described in Section 4 of Carnall et al. (2019b). These papers are the best place to start if you want to understand how the code works.

If you make use of Bagpipes, please include a citation to Carnall et al. (2018) in any publications. You may also consider citing Carnall et al. (2019b), particularly if you are fitting spectroscopy.

Please note development of the code has been ongoing since these works were published, so certain parts of the code are no longer as described. Please inquire if in doubt.

docs/images/sfh_from_spec.png

Metadata

Release files for bagpipes 1.4.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 bagpipes 1.4.0
File Size Uploaded Provenance Actions
bagpipes-1.4.0.tar.gz 251.6 MB Without provenance Details for bagpipes-1.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bagpipes 1.4.0
File Interpreter ABI Platform Actions
bagpipes-1.4.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for bagpipes-1.4.0-py2.py3-none-any.whl

Total release size: 499.5 MB

Release files / bagpipes-1.4.0.tar.gz

Download URL bagpipes-1.4.0.tar.gz
Size 251.6 MB
Tags Source
SHA-256 checksum
How to use checksums
d24d052f4e918faaea12b38537c6827dfd5e6aed19c9144947331220a4062b81
BLAKE2b-256 checksum
How to use checksums
27614612d19281ef97bff016f0f731ceb6f198243bc2593c437a40ab03fed415
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Release files / bagpipes-1.4.0-py2.py3-none-any.whl

Download URL bagpipes-1.4.0-py2.py3-none-any.whl
Size 247.9 MB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0cadfbe37b1fe5ea1083b604260e38d6dcfae88b27cad8967c69ab7c6e7da555
BLAKE2b-256 checksum
How to use checksums
eb5c19c0549dbf5d8a6be8a5e5f517c417a1f88b94312c80b777268a747e44f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Security for bagpipes 1.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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