Skip to content
Snippets Groups Projects
Commit c7b6da6a authored by mj-will's avatar mj-will
Browse files

Add documentation about soft initialization

parent fbc2c10b
No related branches found
No related tags found
1 merge request!620Add "soft initialisation" to Sampler class
......@@ -39,6 +39,11 @@ class Sampler(object):
The result class to use. By default, `bilby.core.result.Result` is used,
but objects which inherit from this class can be given providing
additional methods.
soft_init: bool, optional
Switch to enable a soft initialization that prevents the likelihood
from being tested before running the sampler. This is relevant when
using custom likelihoods that must NOT be initialized on the main thread
when using multiprocessing, e.g. when using tensorflow in the likelihood.
**kwargs: dict
Additional keyword arguments
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment