pypolychord
plugin for bilby
.
This plugin provides the pypolychord
sampler in bilby
.
Note: since polychord
cannot be installed via pip
or conda
, this
plugin can only be installed from source.
First, install polychord
following the instructions in the polychord
documentation.
Once polychord
is installed, the plugin can be installed from the source
code. This can either be done directly using pip:
pip install git+https://github.com/bilby-dev/pypolychord-bilby.git
or by first cloning the git repository and then installing the package:
git clone [email protected]:bilby-dev/pypolychord-bilby.git
cd pypolychord-bilby
pip install .
Once pypolychord-bilby
is installed, the sampler can be used directly in
bilby
via the run_sampler
function:
import bilby
likelihood = ...
priors = ...
bilby.run_sampler(
sampler="pypolychord",
likelihood=likelihood,
priors=priors,
nlive=1000,
...
)
This plugin has not been tested with bilby_pipe
.