Commit f4c2db34 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Add method to facilitate writing samples to a csv file

parent cc79c29d
......@@ -99,6 +99,10 @@ class Result(dict):
"\n\n Saving the data has failed with the following message:\n {} \n\n"
.format(e))
def save_posterior_samples(self):
filename = '{}/{}_posterior_samples.txt'.format(self.outdir, self.label)
self.posterior.to_csv(filename, index=False, header=True)
def get_latex_labels_from_parameter_keys(self, keys):
return_list = []
for k in keys:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment