Skip to content

Commit

Permalink
requiring nautilus 1.0.1 or higher, added log_z error estimate
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesulf committed Feb 23, 2024
1 parent cb37d64 commit dbf6648
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cosmosis/samplers/nautilus/nautilus_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def execute(self):
self.output.final("neff", sampler.n_eff)
self.output.final("nsample", len(sampler.posterior()[0]))
self.output.final("log_z", sampler.log_z)
self.output.final("log_z_error", 1.0 / np.sqrt(sampler.n_eff))
self.converged = True

def is_converged(self):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def run(self):
"emcee",
"dynesty",
"zeus-mcmc",
"nautilus-sampler>=1.0.0",
"nautilus-sampler>=1.0.1",
"dulwich",
"scikit-learn",
"future",
Expand Down

0 comments on commit dbf6648

Please sign in to comment.