diff --git a/rdtools/plotting.py b/rdtools/plotting.py index f99b68af..93a07bac 100644 --- a/rdtools/plotting.py +++ b/rdtools/plotting.py @@ -95,9 +95,9 @@ def degradation_summary_plots(yoy_rd, yoy_ci, yoy_info, normalized_yield, ax2.set_xlim(hist_xmin, hist_xmax) label = ( - ' $R_{d}$ = %.2f%%/yr \n' - 'confidence interval: \n' - '%.2f to %.2f %%/yr' % (yoy_rd, yoy_ci[0], yoy_ci[1]) + f" $R_{{d}}$ = {yoy_rd:.2f}%/yr \n" + f"confidence interval: \n" + f"{yoy_ci[0]:.2f} to {yoy_ci[1]:.2f} %/yr" ) if detailed: n = yoy_values.notnull().sum() diff --git a/setup.py b/setup.py index 3ddef155..441b16c0 100755 --- a/setup.py +++ b/setup.py @@ -52,9 +52,9 @@ "plotly>=4.0.0", "xgboost >= 1.6.0", "pvlib >= 0.11.0, <0.12.0", - "scikit-learn >= 1.1.3", + "scikit-learn >= 1.1.3, <1.6.0", "arch >= 5.0", - "filterpy >= 1.4.2" + "filterpy >= 1.4.2", ] EXTRAS_REQUIRE = {