georgebv/pyextremes

Error in plot_mean_residual_life for scipy v1.11.2

kuhnfe opened this issue · 0 comments

kuhnfe commented

Describe the bug
After updating to scipy v1.11.2 I get an error when executing plot_mean_residual_life(data)

To Reproduce
Steps to reproduce the behavior:

  1. Update scipy
  2. Import example data set batteries
  3. try to execute plot_mean_residual_life(data)

Expected behavior
I expected to see the plot as provided in the tutorial

Screenshots

127     mean_residual_lives.append(exceedances.mean())
128     if alpha is not None:
129         mrl_confidence.append(

--> 130 scipy.stats.norm.interval(
131 alpha=alpha,
132 loc=exceedances.mean(),
133 scale=exceedances.std(ddof=1) / np.sqrt(len(exceedances)),
134 )
135 )
137 with plt.rc_context(rc=pyextremes_rc):
138 if ax is None:

TypeError: interval() missing 1 required positional argument: 'confidence'

Desktop (please complete the following information):

  • macOS
  • Python version 3.9.16

Additional context
Thanks!