From ae85b78a97e8f96a1b487c6844a2261f596d3a40 Mon Sep 17 00:00:00 2001 From: Joe Zuntz Date: Mon, 20 Feb 2023 17:03:57 +0000 Subject: [PATCH] Fixes for MN and PC output of vector quantities --- cosmosis/samplers/multinest/multinest_sampler.py | 2 +- cosmosis/samplers/polychord/polychord_sampler.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cosmosis/samplers/multinest/multinest_sampler.py b/cosmosis/samplers/multinest/multinest_sampler.py index cd9cdf2e..ef8a7588 100644 --- a/cosmosis/samplers/multinest/multinest_sampler.py +++ b/cosmosis/samplers/multinest/multinest_sampler.py @@ -91,7 +91,7 @@ def config(self): # We add one to the output to save the posterior as well as the # likelihood. - self.npar = self.ndim + len(self.pipeline.extra_saves) + 2 + self.npar = self.ndim + self.pipeline.number_extra + 2 #Required options self.max_iterations = self.read_ini("max_iterations", int) diff --git a/cosmosis/samplers/polychord/polychord_sampler.py b/cosmosis/samplers/polychord/polychord_sampler.py index 0f5b4804..cc0b9af9 100644 --- a/cosmosis/samplers/polychord/polychord_sampler.py +++ b/cosmosis/samplers/polychord/polychord_sampler.py @@ -106,7 +106,7 @@ def config(self): self.ndim = len(self.pipeline.varied_params) # We save the prior as well as the other derived params - self.nderived = len(self.pipeline.extra_saves) + 1 + self.nderived = self.pipeline.number_extra + 1 #Required options self.live_points = self.read_ini("live_points", int, 100)