Skip to content

Commit

Permalink
Merge pull request #150 from joezuntz/fix-importance-colname
Browse files Browse the repository at this point in the history
Fix renaming old log_weight col correctly in importance sampler
  • Loading branch information
joezuntz authored Nov 25, 2024
2 parents 17deba7 + 06852c5 commit 6cc9374
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cosmosis/samplers/importance/importance_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ def load_samples(self, filename):
if code=="weight":
code="old_weight"
logs.overview("Renaming weight -> old_weight")
elif code == "log_weight":
code = "old_log_weight"
print("Renaming log_weight -> old_log_weight")
self.output.add_column(code, float)

#Now finally add our actual two sampler outputs, old_like and like
Expand Down

0 comments on commit 6cc9374

Please sign in to comment.