Skip to content

Commit

Permalink
Merge pull request #71 from joezuntz/multinest-polychord-vector-output
Browse files Browse the repository at this point in the history
Fixes for MN and PC output of vector quantities
  • Loading branch information
joezuntz authored Feb 20, 2023
2 parents 4d60226 + ae85b78 commit 8c7a82c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cosmosis/samplers/multinest/multinest_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion cosmosis/samplers/polychord/polychord_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8c7a82c

Please sign in to comment.