Barry: Easy BAO model fitting!
Welcome to the online documentation for Barry.
Check out the config file for examples on how to use Barry.
Or read through the
Installation
Barry requires the following dependencies:
numpy
scipy
matplotlib
chainconsumer
emcee
dynesty
pandas
camb
hankel
pyyaml
You can install Barry either locally, or if you want
to pip
install it, run:
pip install barry
Issues
Please raise issues, bugs and feature requests on the Github Issues Page.
How to Use
Ensure that you have a named conda environment of at least python 3.6.
Clone this project onto both your local computer and a cluster computer
Have all dependencies installed:
pip install -r requirements.txt
Update
config.yml
to include the name of your environment for activation on the HPC- Run any of the python files in
barry.config
. If you run on your local computer (ie
python test.py
), it will run the first MCMC run only to verify it works.If you run on a cluster (checks for cluster if the OS is centos, let me know if yours isn’t), it will create a slurm job script and send out all needed runs
Once all jobs have finished, copy the output from the plots folder ie
barry.config.plots.mocks
to your local computerRun the same python script and it will load in the data and create the plots.
- Run any of the python files in
Check out the API below or browse the examples used to make the Barry paper. For any questions, flick me an email (samuelreay@gmail.com).