Skip to content

Commit 9403806

Browse files
committed
Update module and inverter files (#761)
With data files fetched from NREL/SAM@aa60bc3.
1 parent a873462 commit 9403806

6 files changed

+24815
-24364
lines changed

pvlib/data/sam-library-cec-inverters-2018-3-18.csv

Lines changed: 0 additions & 5103 deletions
This file was deleted.

pvlib/data/sam-library-cec-inverters-2019-03-05.csv

Lines changed: 3267 additions & 0 deletions
Large diffs are not rendered by default.

pvlib/data/sam-library-cec-modules-2017-6-5.csv

Lines changed: 0 additions & 19257 deletions
This file was deleted.

pvlib/data/sam-library-cec-modules-2019-03-05.csv

Lines changed: 21538 additions & 0 deletions
Large diffs are not rendered by default.

pvlib/pvsystem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1763,7 +1763,7 @@ def retrieve_sam(name=None, path=None):
17631763
os.path.dirname(os.path.abspath(__file__)), 'data')
17641764
if name == 'cecmod':
17651765
csvdata = os.path.join(
1766-
data_path, 'sam-library-cec-modules-2017-6-5.csv')
1766+
data_path, 'sam-library-cec-modules-2019-03-05.csv')
17671767
elif name == 'sandiamod':
17681768
csvdata = os.path.join(
17691769
data_path, 'sam-library-sandia-modules-2015-6-30.csv')
@@ -1773,7 +1773,7 @@ def retrieve_sam(name=None, path=None):
17731773
# Allowing either, to provide for old code,
17741774
# while aligning with current expectations
17751775
csvdata = os.path.join(
1776-
data_path, 'sam-library-cec-inverters-2018-3-18.csv')
1776+
data_path, 'sam-library-cec-inverters-2019-03-05.csv')
17771777
else:
17781778
raise ValueError('invalid name {}'.format(name))
17791779
elif path is not None:

pvlib/test/test_pvsystem.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,14 @@ def test_retrieve_sam_cecmod():
274274
'Adjust',
275275
'gamma_r',
276276
'Version',
277+
'STC',
277278
'PTC',
278279
'Technology',
280+
'Bifacial',
281+
'Length',
282+
'Width',
279283
]
280-
module = 'iTek_iT_300_HE'
284+
module = 'Itek_Energy_LLC_iT_300_HE'
281285
assert module in data
282286
assert set(data[module].keys()) == set(keys)
283287

@@ -304,8 +308,10 @@ def test_retrieve_sam_cecinverter():
304308
'Idcmax',
305309
'Mppt_low',
306310
'Mppt_high',
311+
'CEC_Date',
312+
'CEC_Type',
307313
]
308-
inverter = 'Solectria__PVI_5300_5300_P_208V__CEC_2008_'
314+
inverter = 'Yaskawa_Solectria_Solar__PVI_5300_208__208V_'
309315
assert inverter in data
310316
assert set(data[inverter].keys()) == set(keys)
311317

0 commit comments

Comments
 (0)