Skip to content

Commit

Permalink
Fixed dimensionality for one proposal.
Browse files Browse the repository at this point in the history
  • Loading branch information
appetrosyan committed Apr 15, 2021
1 parent e58a292 commit 2735e2e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cobaya/samplers/polychord/polychord.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,9 @@ def initialize(self):
pc_args.pop(pc_args.index("num_repeats"))

if self.use_supernest:
self.grade_dims.append(1)
self.grade_frac.append(1.0)
# For the choice probability, and choice indicator.
self.grade_dims.extend([1, 1])
self.grade_frac.extend([1.0, 1.0])
self.pc_settings = PolyChordSettings(
self.nDims + 1, # FIXME: only true for one proposal.
self.nDerived,
Expand Down

0 comments on commit 2735e2e

Please sign in to comment.