From 6ad3f64c93aae675fbcf2d6e9e4bfa2f444710ff Mon Sep 17 00:00:00 2001 From: martin-springer Date: Mon, 2 Dec 2024 16:57:46 -0500 Subject: [PATCH 1/2] update degradation_summary_plots label to f-strings --- rdtools/plotting.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rdtools/plotting.py b/rdtools/plotting.py index dfd1c921..b589dab7 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() From 596f58419e54da329a73d85a34bb4c10dcfa4243 Mon Sep 17 00:00:00 2001 From: martin-springer Date: Thu, 12 Dec 2024 15:57:00 -0500 Subject: [PATCH 2/2] restrict scikit-learn < 1.6 --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = {