Skip to main content

Galaxy spectral fitting

Project description

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 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. To fit models to data with the code you will also need to install the MultiNest code. 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.


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

bagpipes-1.0.4.tar.gz (209.7 MB view hashes)

Uploaded Source

Built Distribution

bagpipes-1.0.4-py2.py3-none-any.whl (206.0 MB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page