georgebv / pyextremes

Extreme Value Analysis (EVA) in Python
https://georgebv.github.io/pyextremes/
MIT License
240 stars 47 forks source link

Error in plot_mean_residual_life for scipy v1.11.2 #70

Closed kuhnfe closed 1 year ago

kuhnfe commented 1 year ago

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):

Additional context Thanks!