Skip to main content

out-of-core processing and plotting of MultiNest output

Project description


barrett is a software package meant to process and visualise the output of the nested sampling
algorithm MultiNest. There are several packages already on the market for this, but barrett's
main differential feature is out-of-core processing so the code can handle very large datasets.

Specific technologies: HDF5, and Python (h5py, scipy, numpy, matplotlib).


barrett is split into four submodules:

+ implements methods for modifying data (e.g. log, change units) or calculate
depended variables (e.g. mean squark mass)

+ barrett.posterior is for calculating and plot the one or two dimensional marginal
posterior distribution.

+ barrett.profilelikelihood is for calculating and plot the one or two dimensional profile

+ barrett.util contain various utility functions most notable convert_chain() which converts
the plain text MultiNest output to the HDF5 format used by barrett.

As for parallelisation; writing to the same hdf5 file is strongly discouraged. Reading the file
is however perfectly fine. So posterior/profilelikelihood module is perfectly parallelisable.
The code itself is not parallelised, instead I recommend using Python's multiprocessing module to
producing several plots in parallell. In most system tested the plotting is CPU bound, your
mileage may vary.


Barrett is available on PyPI and can be installed using pip

pip install barrett

If you use barrett in your research please cite arXiv:1608.00990:

author = {Liem, Sebastian},
title = "{Barrett: out-of-core processing of MultiNest output}",
archivePrefix = "arXiv",
eprint = {1608.00990},
primaryClass = "stat.CO",
year = 2016


Please check the example directory for for an, you guessed it, example.

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

barrett-0.2.1.tar.gz (5.8 kB view hashes)

Uploaded source

Built Distribution

barrett-0.2.1-py2.py3-none-any.whl (9.5 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page