From adc74996196aca6c49dd0eae197da3891f91b135 Mon Sep 17 00:00:00 2001 From: Matt Pitkin Date: Thu, 16 Jul 2026 20:26:55 +0100 Subject: [PATCH] Remove 'weights' from sample in result.py Remove 'weights' from sample if it exists. --- bilby/core/result.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bilby/core/result.py b/bilby/core/result.py index b89d0e30f..35842da45 100644 --- a/bilby/core/result.py +++ b/bilby/core/result.py @@ -274,6 +274,9 @@ def eval_pool(this_logl): if "log_likelihood" in sample: del sample["log_likelihood"] + if "weights" in sample: + del sample["weights"] + if old_prior is not None: old_log_prior_array[ii] = old_prior.ln_prob(sample) else: