Skip to content

Commit 5513e58

Browse files
committed
update test for singlediode p_mp fix
1 parent d7fce07 commit 5513e58

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pvlib/test/test_pvsystem.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -466,12 +466,12 @@ def test_singlediode_series_ivcurve(cec_module_params):
466466
out = pvsystem.singlediode(IL, I0, Rs, Rsh, nNsVth, ivcurve_pnts=3)
467467

468468
expected = OrderedDict([('i_sc', array([ nan, 6.00675648])),
469-
('i_mp', array([ nan, 5.6129056])),
469+
('i_mp', array([ nan, 5.285947])),
470470
('v_oc', array([ nan, 10.29530483])),
471-
('v_mp', array([ nan, 7.25364707])),
472-
('p_mp', array([ nan, 40.71403625])),
471+
('v_mp', array([ nan, 8.415971])),
472+
('p_mp', array([ nan, 44.486373])),
473473
('i_x', array([ nan, 5.74622046])),
474-
('i_xx', array([ nan, 4.97138154])),
474+
('i_xx', array([ nan, 3.90008])),
475475
('i',
476476
array([[ nan, nan, nan],
477477
[ 6.00726296, 5.74622046, 0. ]])),
@@ -480,7 +480,7 @@ def test_singlediode_series_ivcurve(cec_module_params):
480480
[ 0. , 5.14765242, 10.29530483]]))])
481481

482482
for k, v in out.items():
483-
assert_allclose(expected[k], v, atol=3)
483+
assert_allclose(expected[k], v, atol=1e-2)
484484

485485

486486
def test_scale_voltage_current_power(sam_data):

0 commit comments

Comments
 (0)