dnest4 plugin for bilby.
This plugin provides the dnest4 sampler in bilby.
dnest4 is available via conda, or
can be installed from source following these instructions.
Once dnest4 is installed, the plugin can be installed using pip:
pip install git+https://github.com/bilby-dev/dnest4-bilby.gitNote: the conda version of the dnest4 does not support numpy>2.0.
Note: due to changes in numpy and Python that are incompatible with dnest4 this plugin is only tested with Python < 3.11.
It may be possible to compile a working version of dynest4 with more recent numpy and Python versions but this has not been
tested.
Once dnest4-bilby is installed, the sampler can be used directly in bilby via the run_sampler function:
import bilby
likelihood = ...
priors = ...
bilby.run_sampler(
sampler="dnest4",
likelihood=likelihood,
priors=priors,
nlive=1000,
...
)This plugin has not been tested with bilby_pipe.