Skip to content

Commit 41864fc

Browse files
committed
change initial condition
1 parent f961e2b commit 41864fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pvlib/tests/ivtools/test_sdm.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ def test_fit_desoto():
8181

8282

8383
def test_fit_desoto_init_guess(mocker):
84-
init_guess = {'IL_0': 9.4, 'Io_0': 6.0e-7, 'Rs_0': 0.15, 'Rsh_0': 100.,
85-
'a_0': 2.3}
86-
init_guess_array = np.array([9.4, 6.0e-7, 0.15, 100., 2.3])
84+
init_guess_array = np.array([9.4, 3.0e-9, 0.3, 125., 1.5])
85+
init_guess = {k: v for k, v in zip(['IL_0', 'Io_0', 'Rs_0', 'Rsh_0'],
86+
init_guess_array)}
8787
mocker.spy(optimize, 'root')
8888
result, _ = sdm.fit_desoto(v_mp=31.0, i_mp=8.71, v_oc=38.3, i_sc=9.43,
8989
alpha_sc=0.005658, beta_voc=-0.13788,

0 commit comments

Comments
 (0)