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

Merge branch 'minor-fix-to-dynesty' into 'master'

Adds a check to dynesty to ensure the dir exists before writing the pickle file

See merge request lscsoft/bilby!462
parents 5d3866f6 e723d4bb
No related branches found
No related tags found
1 merge request!462Adds a check to dynesty to ensure the dir exists before writing the pickle file
Pipeline #59771 passed
......@@ -209,6 +209,7 @@ class Dynesty(NestedSampler):
if self.kwargs["verbose"]:
print("")
check_directory_exists_and_if_not_mkdir(self.outdir)
dynesty_result = "{}/{}_dynesty.pickle".format(self.outdir, self.label)
with open(dynesty_result, 'wb') as file:
pickle.dump(out, file)
......
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