out-of-core processing and plotting of MultiNest output
Project description
=======
barrett
=======
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).
Usage
-----
barrett is split into four submodules:
+ barrett.data 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
likelihood.
+ 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.
Installation
------------
Barrett is available on PyPI and can be installed using pip
pip install barrett
Cite
----
If you use barrett in your research please cite arXiv:1608.00990:
@article{2016arXiv160800990L,
author = {Liem, Sebastian},
title = "{Barrett: out-of-core processing of MultiNest output}",
archivePrefix = "arXiv",
eprint = {1608.00990},
primaryClass = "stat.CO",
year = 2016
}
Example
-------
Please check the example directory for plot.py for an, you guessed it, example.
barrett
=======
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).
Usage
-----
barrett is split into four submodules:
+ barrett.data 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
likelihood.
+ 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.
Installation
------------
Barrett is available on PyPI and can be installed using pip
pip install barrett
Cite
----
If you use barrett in your research please cite arXiv:1608.00990:
@article{2016arXiv160800990L,
author = {Liem, Sebastian},
title = "{Barrett: out-of-core processing of MultiNest output}",
archivePrefix = "arXiv",
eprint = {1608.00990},
primaryClass = "stat.CO",
year = 2016
}
Example
-------
Please check the example directory for plot.py 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 details)
Built Distribution
File details
Details for the file barrett-0.2.1.tar.gz
.
File metadata
- Download URL: barrett-0.2.1.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27a2af0b632782d427484a3c14c20376219a7092bdc7a984245408b4e8c23924 |
|
MD5 | f1c62f9e5e11656b756f396ffa5b02f4 |
|
BLAKE2b-256 | 6acbb06b1aae75c272e39b75e8e93dc3c843272bd912489b3dfc44985cfa1b67 |
File details
Details for the file barrett-0.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: barrett-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97b5be0a4a4b822ad59d79ce845c991055f67e92154ab936f37e0cad41908fdd |
|
MD5 | 2c02ee8cfcb9ca470ba6bad267f5648e |
|
BLAKE2b-256 | a9432d5c9488d7802729fa659fff88316e6194660a97395b2da8cd357c69716c |