Skip to content

bilby-dev/pypolychord-bilby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pypolychord-bilby

pypolychord plugin for bilby.

This plugin provides the pypolychord sampler in bilby.

Installation

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 .

Usage

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,
    ...
)

Usage with bilby_pipe

This plugin has not been tested with bilby_pipe.

About

Interface for using polychord in bilby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages