bilby.core.sampler.ImplementedSamplers

class bilby.core.sampler.ImplementedSamplers[source]

Bases: object

Dictionary-like object that contains implemented samplers.

This class is singleton and only one instance can exist.

__init__(*args, **kwargs)
__call__(*args, **kwargs)

Call self as a function.

Methods

__init__(*args, **kwargs)

items()

Iterator of tuples containing keys (sampler names) and classes.

keys()

Iterator of available samplers by name.

valid_keys()

All valid keys including bilby.<sampler name>.

values()

Iterator of sampler classes.

items()[source]

Iterator of tuples containing keys (sampler names) and classes.

Note: the classes need to loaded using .load() before being called.

keys()[source]

Iterator of available samplers by name.

Reduces the list to its simplest. This includes removing the ‘bilby.’ prefix from native samplers if a corresponding plugin is not available.

valid_keys()[source]

All valid keys including bilby.<sampler name>.

values()[source]

Iterator of sampler classes.

Note: the classes need to loaded using .load() before being called.