From a255f43c7c06aa4ece52c1165a34df1f1600d905 Mon Sep 17 00:00:00 2001 From: Carl-Johan Haster <carl-johan.haster@ligo.org> Date: Wed, 20 Feb 2019 11:21:17 +1100 Subject: [PATCH] Change median_logL to mean_logL --- lalinference/python/cbcBayesMCMC2pos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lalinference/python/cbcBayesMCMC2pos.py b/lalinference/python/cbcBayesMCMC2pos.py index 8ebab47774..52c4fec1eb 100644 --- a/lalinference/python/cbcBayesMCMC2pos.py +++ b/lalinference/python/cbcBayesMCMC2pos.py @@ -137,11 +137,11 @@ def downsample_and_evidence(data_hdf5, deltaLogP=None, fixedBurnin=None, nDownsa logls = np.zeros_like(betas) betas[0] = 1./np.median(posterior_samples['temperature']) - logls[0] = np.median(posterior_samples['logl']) + logls[0] = np.mean(posterior_samples['logl']) for i in range(len(highTchains)): betas[i+1] = 1./np.median(highTchains[i]['temperature']) - logls[i+1] = np.median(highTchains[i]['logl']) + logls[i+1] = np.mean(highTchains[i]['logl']) inds = np.argsort(betas)[::-1] -- GitLab