diff --git a/docs/source/index.rst b/docs/source/index.rst index ebfc352..f65cfd1 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -114,6 +114,10 @@ Copyright 2022-2024 Minas Karamanis and contributors. Changelog ========= +**1.2.2 (20/06/24)** + +- Fixed bug in ``posterior`` method related to blobs. + **1.2.1 (14/06/24)** - Added support for log-likelihoods that return ``-np.inf`` inside the prior volume. diff --git a/pocomc/_version.py b/pocomc/_version.py index 6654167..2be6f8b 100644 --- a/pocomc/_version.py +++ b/pocomc/_version.py @@ -1 +1 @@ -version = "1.2.1" \ No newline at end of file +version = "1.2.2" diff --git a/pocomc/sampler.py b/pocomc/sampler.py index 0190af3..1611bde 100644 --- a/pocomc/sampler.py +++ b/pocomc/sampler.py @@ -947,6 +947,8 @@ def posterior(self, resample=False, return_blobs=False, trim_importance_weights= logl = logl[idx] logp = logp[idx] logw = logw[idx] + if return_blobs: + blobs = blobs[idx] if resample: if self.resample == 'mult':