From fc8eebb4d374b309fe4779d9164aec9a1ba8850c Mon Sep 17 00:00:00 2001 From: Kevin Anderson Date: Thu, 21 Sep 2023 10:13:49 -0400 Subject: [PATCH] `fit_pvefficiency_adr` compatibility with scipy 1.11.2 (#1866) --- pvlib/pvarray.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pvlib/pvarray.py b/pvlib/pvarray.py index 30e824e8f2..e8968886e1 100644 --- a/pvlib/pvarray.py +++ b/pvlib/pvarray.py @@ -192,9 +192,9 @@ def fit_pvefficiency_adr(effective_irradiance, temp_cell, eta, P_NAMES = ['k_a', 'k_d', 'tc_d', 'k_rs', 'k_rsh'] P_MAX = [+np.inf, 0, +0.1, 1, 1] # noQA: E221 - P_MIN = [0, -12, -0.1, 0, 0] # noQA: E221 - P0 = [eta_max, -6, 0.0, 0, 0] # noQA: E221 - P_SCALE = [eta_max, 10, 0.1, 1, 1] + P_MIN = [0, -12, -0.1, 0.0, 0.0] # noQA: E221 + P0 = [eta_max, -6, 0.0, 1e-3, 1e-3] # noQA: E221 + P_SCALE = [eta_max, 10, 0.1, 1.0, 1.0] SIGMA = 1 / np.sqrt(irradiance / 1000)