Skip to content
Snippets Groups Projects
Commit dbd67c0c authored by Sylvia Biscoveanu's avatar Sylvia Biscoveanu Committed by Colm Talbot
Browse files

BUGFIX: catch KeyError in PP plot

parent ac3b9a0e
No related branches found
No related tags found
No related merge requests found
......@@ -2165,7 +2165,7 @@ def make_pp_plot(results, filename=None, save=True, confidence_interval=[0.68, 0
try:
name = results[0].priors[key].latex_label
except AttributeError:
except (AttributeError, KeyError):
name = key
label = "{} ({:2.3f})".format(name, pvalue)
plt.plot(x_values, pp, lines[ii], label=label, **kwargs)
......
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