bilby.core.utils.parallel.initialize_global_variables
- bilby.core.utils.parallel.initialize_global_variables(likelihood, priors, search_parameter_keys, use_ratio, parameters)[source]
Store a global copy of the likelihood, priors, and search keys for multiprocessing.
- Parameters:
- likelihood: bilby.core.likelihood.Likelihood
The likelihood to copy into each process
- priors: bilby.core.prior.PriorDict
The Bilby prior dictionary to copy into each process
- search_parameter_keys: list[str], None
The names for parameters being sampled over
- use_ratio: bool
Whether to evaluate the log_likelihood_ratio
- parameters: dict
A set of default parameters to pass through to the new processes, e.g., if there are fixed parameters that the sampler used doesn’t use.