Skip to content
Snippets Groups Projects

Add another exception to catch in `plot_with_data`

Merged Matthew David Pitkin requested to merge matthew-pitkin/bilby:fix_plot_with_data into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -804,7 +804,7 @@ class Result(object):
s = model_posterior.iloc[self.posterior.log_likelihood.idxmax()]
ax.plot(xsmooth, model(xsmooth, **s), lw=1, color='k',
label=maxl_label)
except AttributeError:
except (AttributeError, TypeError):
logger.debug(
"No log likelihood values stored, unable to plot max")
Loading