@@ -1358,8 +1358,9 @@ def test_singlediode_floats():
13581358
13591359
13601360def test_singlediode_floats_ivcurve ():
1361- out = pvsystem .singlediode (7. , 6e-7 , .1 , 20. , .5 , ivcurve_pnts = 3 ,
1362- method = 'lambertw' )
1361+ with pytest .warns (pvlibDeprecationWarning , match = 'ivcurve_pnts' ):
1362+ out = pvsystem .singlediode (7. , 6e-7 , .1 , 20. , .5 , ivcurve_pnts = 3 ,
1363+ method = 'lambertw' )
13631364 expected = {'i_xx' : 4.264060478 ,
13641365 'i_mp' : 6.136267360 ,
13651366 'v_oc' : 8.106300147 ,
@@ -1391,8 +1392,9 @@ def test_singlediode_series_ivcurve(cec_module_params):
13911392 EgRef = 1.121 ,
13921393 dEgdT = - 0.0002677 )
13931394
1394- out = pvsystem .singlediode (IL , I0 , Rs , Rsh , nNsVth , ivcurve_pnts = 3 ,
1395- method = 'lambertw' )
1395+ with pytest .warns (pvlibDeprecationWarning , match = 'ivcurve_pnts' ):
1396+ out = pvsystem .singlediode (IL , I0 , Rs , Rsh , nNsVth , ivcurve_pnts = 3 ,
1397+ method = 'lambertw' )
13961398
13971399 expected = OrderedDict ([('i_sc' , array ([0. , 3.01079860 , 6.00726296 ])),
13981400 ('v_oc' , array ([0. , 9.96959733 , 10.29603253 ])),
@@ -1411,7 +1413,8 @@ def test_singlediode_series_ivcurve(cec_module_params):
14111413 for k , v in out .items ():
14121414 assert_allclose (v , expected [k ], atol = 1e-2 )
14131415
1414- out = pvsystem .singlediode (IL , I0 , Rs , Rsh , nNsVth , ivcurve_pnts = 3 )
1416+ with pytest .warns (pvlibDeprecationWarning , match = 'ivcurve_pnts' ):
1417+ out = pvsystem .singlediode (IL , I0 , Rs , Rsh , nNsVth , ivcurve_pnts = 3 )
14151418
14161419 expected ['i_mp' ] = pvsystem .i_from_v (out ['v_mp' ], IL , I0 , Rs , Rsh , nNsVth ,
14171420 method = 'lambertw' )
@@ -1428,7 +1431,7 @@ def test_singlediode_series_ivcurve(cec_module_params):
14281431
14291432@pytest .mark .parametrize ('method' , ['lambertw' , 'brentq' , 'newton' ])
14301433def test_singlediode_ivcurvepnts_deprecation_warning (method ):
1431- with pytest .warns (pvlibDeprecationWarning ):
1434+ with pytest .warns (pvlibDeprecationWarning , match = 'ivcurve_pnts' ):
14321435 pvsystem .singlediode (7. , 6e-7 , .1 , 20. , .5 , ivcurve_pnts = 3 ,
14331436 method = method )
14341437
0 commit comments