Installation#

Note

It is recommended to install PyTorch before installing nessai. See the PyTorch documentation for how to install the correct version.

conda install -c conda-forge -c pytorch nessai

This will install the dependencies needed but the version of PyTorch will not necessarily be the correct version for your system.

Using nessai with bilby#

As of bilby version 2.3.0, the recommended way to use nessai is via the nessai-bilby sampler plugin. This can be installed via either conda or pip and provides the most up-to-date interface for nessai. This includes support for the importance nested sampler (inessai).

conda install -c conda-forge nessai-bilby

For more details about the plugin, see the nessai-bilby documentation

For older versions of bilby (<2.3.0 and >1.1.0), no additional packages are required to use nessai but some versions may be incompatible.

For examples of how to run nessai via bilby see the examples directory.

Developing for nessai#

To install nessai for development purposes see the contribution guidelines.