Skip to content
Snippets Groups Projects
Commit 44480cef authored by Colm Talbot's avatar Colm Talbot
Browse files

update printing of prior

parent 0fd899cf
No related branches found
No related tags found
1 merge request!23implement prior generation
......@@ -410,6 +410,7 @@ def write_priors_to_file(priors, outdir):
if outdir[-1]!="/":
outdir += "/"
prior_file = outdir + "prior.txt"
print("Writing priors to {}".format(prior_file))
with open(prior_file, "w") as outfile:
for key in priors:
outfile.write("prior[{}] = {}".format(key, priors[key]))
outfile.write("prior['{}'] = {}\n".format(key, priors[key]))
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