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

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

parent 5d3866f6
No related branches found
No related tags found
No related merge requests found
......@@ -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