8000 Test for Pnt error with microinverter · funature/pvlib-python@e5d591d · GitHub
[go: up one dir, main page]

Skip to content

Commit e5d591d

Browse files
committed
Test for Pnt error with microinverter
Testing for issue pvlib#140.
1 parent c90b7d0 commit e5d591d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pvlib/test/test_pvsystem.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,17 @@ def test_snlinverter_float():
384384
assert_almost_equals(pacs, 132.004278, 5)
385385

386386

387+
def test_snlinverter_Pnt_micro():
388+
inverters = sam_data['cecinverter']
389+
testinv = 'Enphase_Energy__M250_60_2LL_S2x___ZC____NA__208V_208V__CEC_2013_'
390+
vdcs = pd.Series(np.linspace(0,50,3))
391+
idcs = pd.Series(np.linspace(0,11,3))
392+
pdcs = idcs * vdcs
393+
394+
pacs = pvsystem.snlinverter(inverters[testinv], vdcs, pdcs)
395+
assert_series_equal(pacs, pd.Series([-0.043000, 132.545914746, 240.000000]))
396+
397+
387398
def test_PVSystem_creation():
388399
pv_system = pvsystem.PVSystem(module='blah', inverter='blarg')
389400

0 commit comments

Comments
 (0)
0