dnest4 plugin for bilby.
This plugin provides the dnest4 sampler in bilby.
This plugin is available via pip:
pip install dnest4-bilby
and conda:
conda install conda-forge:dnest4-bilby
Note: when installing via pip, you must install dnest4 separately.
dnest4 is available via conda, or
can be installed from source following these instructions.
dnest4no longer provides a Python interface- The
condaversion of thednest4does not supportnumpy>2.0. - Due to changes in
numpyand Python that are incompatible withdnest4this plugin is only tested with Python < 3.11. It may be possible to compile a working version ofdynest4with more recentnumpyand Python versions but this has not been tested. - This plugin is tested against
dnest4versions 0.2.4 and 0.3.3, the latest versions available via conda-forge and PyPI respectively.
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.