bilby.core.sampler.get_sampler_class

bilby.core.sampler.get_sampler_class(sampler)[source]

Get the class for a sampler from its name.

This includes natively supported samplers (e.g. dynesty) and any additional samplers that are supported through the sampler plugins.

Parameters:
samplerstr

The name of the sampler.

Returns:
Sampler

The sampler class.

Raises:
ValueError

Raised if the sampler is not implemented.