@@ -2199,20 +2199,20 @@ def test_pvwatts_dc_arrays_with_k():
21992199
22002200
22012201def test_pvwatts_dc_series_with_k ():
2202- irrad_trans = pd .Series ([np .nan , 100 , 100 ])
2203- temp_cell = pd .Series ([30 , np .nan , 30 ])
2204- expected = pd .Series (np .array ([ nan , nan , 8.9125 ]))
2202+ irrad_trans = pd .Series ([np .nan , 100 , 100 , 1200 ])
2203+ temp_cell = pd .Series ([30 , np .nan , 30 , 30 ])
2204+ expected = pd .Series (np .array ([ nan , nan , 8.9125 , 118.45 ]))
22052205 out = pvsystem .pvwatts_dc (irrad_trans , temp_cell , 100 , - 0.003 , 25 , 0.01 )
22062206 assert_series_equal (expected , out )
22072207
22082208
22092209def test_pvwatts_dc_with_k_and_cap_adjustment ():
22102210 irrad_trans = [100 , 1200 ]
22112211 temp_cell = 25
2212- ks = [0.01 , 0.02 ]
2212+ ks = [0.01 , 0.15 ]
22132213 cap_adjustments = [False , True ]
22142214 out = []
2215- expected = [9.0625 , 120.25 , 8.125 , 120.5 , 9.0625 , 120.0 , 8.125 , 120.0 ]
2215+ expected = [9.0625 , 120.25 , 0 , 123.75 , 9.0625 , 120.0 , 0 , 120.0 ]
22162216 for cap_adjustment in cap_adjustments :
22172217 for k in ks :
22182218 for irrad in irrad_trans :
0 commit comments