bilby.gw.conversion.compute_per_detector_log_likelihoods

bilby.gw.conversion.compute_per_detector_log_likelihoods(samples, likelihood, npool=1, block=10)[source]

Calculate the log likelihoods in each detector.

Parameters:
samples: DataFrame

Posterior from run with a marginalised likelihood.

likelihood: bilby.gw.likelihood.GravitationalWaveTransient

Likelihood used during sampling.

npool: int, (default=1)

If given, perform generation (where possible) using a multiprocessing pool

block: int, (default=10)

Size of the blocks to use in multiprocessing

Returns:
sample: DataFrame

Returns the posterior with new samples.