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

Add option for soft init

parent 825cf64a
No related branches found
No related tags found
1 merge request!620Add "soft initialisation" to Sampler class
......@@ -86,7 +86,7 @@ class Sampler(object):
self, likelihood, priors, outdir='outdir', label='label',
use_ratio=False, plot=False, skip_import_verification=False,
injection_parameters=None, meta_data=None, result_class=None,
likelihood_benchmark=False,
likelihood_benchmark=False, soft_init=False,
**kwargs):
self.likelihood = likelihood
if isinstance(priors, PriorDict):
......@@ -109,8 +109,11 @@ class Sampler(object):
self._constraint_parameter_keys = list()
self._initialise_parameters()
self._verify_parameters()
self._time_likelihood()
self._verify_use_ratio()
if not soft_init:
self._time_likelihood()
self._verify_use_ratio()
self.kwargs = kwargs
self._check_cached_result()
......
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