diff --git a/bilby/core/sampler/base_sampler.py b/bilby/core/sampler/base_sampler.py index 6d9047541e6bcc801b83657b9e04fc5d247d6a99..fdbc5a32553d2fc3c211a82df07066456dcf384b 100644 --- a/bilby/core/sampler/base_sampler.py +++ b/bilby/core/sampler/base_sampler.py @@ -431,7 +431,7 @@ class NestedSampler(Sampler): "Multiple matches found between sorted and unsorted samples") else: idxs.append(idx[0]) - return unsorted_loglikelihoods(idxs) + return unsorted_loglikelihoods[idxs] class MCMCSampler(Sampler):