Skip to content
Snippets Groups Projects
Commit b0b2a4e5 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Minor tweaks

parent 68531e16
No related branches found
No related tags found
1 merge request!602Update the print function to use tqdm and add more information
Pipeline #81789 passed
......@@ -193,12 +193,12 @@ class Dynesty(NestedSampler):
# Constructing output.
string = []
string.append("bound:{:d}".format(bounditer))
string.append("ncall: {:d}".format(ncall))
string.append("eff: {:0.1f}".format(eff))
string.append("ncall:{:d}".format(ncall))
string.append("eff:{:0.1f}%".format(eff))
string.append("{}={:0.2f}+/-{:0.2f}".format(key, logz, logzerr))
string.append("dlogz:{:0.3f} > {:0.3f}".format(delta_logz, dlogz))
self.pbar.set_postfix_str(" | ".join(string), refresh=True)
self.pbar.set_postfix_str(" ".join(string), refresh=False)
self.pbar.update(niter - self.pbar.n)
def _apply_dynesty_boundaries(self):
......@@ -406,6 +406,7 @@ class Dynesty(NestedSampler):
NestedSampler to write to disk.
"""
check_directory_exists_and_if_not_mkdir(self.outdir)
print("")
logger.info("Writing checkpoint file {}".format(self.resume_file))
end_time = datetime.datetime.now()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment