Commit e33bc037 authored by moritz's avatar moritz
Browse files

Merge remote-tracking branch 'origin/master'

parents fbb826c0 1d6bfdbe
Pipeline #18687 failed with stages
in 1 minute
......@@ -37,7 +37,12 @@ class Result(dict):
os.rename(file_name, file_name + '.old')"Saving result to {}".format(file_name)), self)
try:, self)
except Exception as e:
"\n\n Saving the data has failed with the following message:\n {} \n\n"
def plot_corner(self, save=True, **kwargs):
""" Plot a corner-plot using chain-consumer
......@@ -401,7 +401,7 @@ def run_sampler(likelihood, priors=None, label='label', outdir='outdir',
result.log_bayes_factor = result.logz - result.noise_logz
result.injection_parameters = injection_parameters
result.fixed_parameter_keys = [key for key in priors if isinstance(key, prior.DeltaFunction)]
result.prior = priors
# result.prior = prior # Removed as this breaks the saving of the data
result.save_to_file(outdir=outdir, label=label)
return result
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