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

Minor clean up of printed output

parent 79a1888b
No related branches found
No related tags found
1 merge request!118Clean up dynesty
Pipeline #
......@@ -546,6 +546,10 @@ class Dynesty(Sampler):
else:
out = self._run_external_sampler_without_checkpointing(nested_sampler)
# Flushes the output to force a line break
if self.kwargs["verbose"]:
print("")
# self.result.sampler_output = out
weights = np.exp(out['logwt'] - out['logz'][-1])
self.result.samples = dynesty.utils.resample_equal(
......@@ -565,7 +569,6 @@ class Dynesty(Sampler):
dlogz=self.kwargs['dlogz'],
print_progress=self.kwargs['verbose'],
print_func=self._print_func)
print("")
return nested_sampler.results
def _run_external_sampler_with_checkpointing(self, nested_sampler):
......@@ -596,8 +599,6 @@ class Dynesty(Sampler):
dlogz=self.kwargs['dlogz'],
print_progress=self.kwargs['verbose'],
print_func=self._print_func, add_live=True)
print("")
self._remove_checkpoint()
return nested_sampler.results
......
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