We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bb9712 commit 4ef201bCopy full SHA for 4ef201b
pvlib/tests/ivtools/test_sdm.py
@@ -85,15 +85,15 @@ def test_fit_desoto_init_guess(mocker):
85
init_guess = {k: v for k, v in zip(
86
['IL_0', 'Io_0', 'Rs_0', 'Rsh_0', 'a_0'], init_guess_array)}
87
mocker.spy(optimize, 'root')
88
- specs = (9.43, 38.3, 8.71, 31.0, -0.13788, 0.005658, 1.121, -0.0002677,
89
- 298.15, constants.value('Boltzmann constant in eV/K')) # for test
+ #specs = (9.43, 38.3, 8.71, 31.0, -0.13788, 0.005658, 1.121, -0.0002677,
+ # 298.15, constants.value('Boltzmann constant in eV/K')) # for test
90
root_args = {} # to fill out call for test
91
result, _ = sdm.fit_desoto(v_mp=31.0, i_mp=8.71, v_oc=38.3, i_sc=9.43,
92
alpha_sc=0.005658, beta_voc=-0.13788,
93
cells_in_series=60, init_guess=init_guess)
94
optimize.root.assert_called_once_with(mocker.ANY,
95
x0=pytest.approx(init_guess_array),
96
- args=(pytest.approx(specs),),
+ args=(mocker.ANY,),
97
**root_args)
98
99
0 commit comments