Skip to content

Commit 678cead

Browse files
Pequewholmgren
authored andcommitted
Update module and inverter files (#761) (#767)
* Update module and inverter files (#761) With data files fetched from NREL/SAM@aa60bc3. * update whatsnew
1 parent 5b4ba72 commit 678cead

7 files changed

+24819
-24364
lines changed

docs/sphinx/source/whatsnew/v0.7.0.rst

+4
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ Enhancements
7676
~~~~~~~~~~~~
7777
* Created two new incidence angle modifier functions: :py:func:`pvlib.pvsystem.iam_martin_ruiz`
7878
and :py:func:`pvlib.pvsystem.iam_interp`. (:issue:`751`)
79+
* Updated the file for module parameters for the CEC model, from the SAM file
80+
dated 2017-6-5 to the SAM file dated 2019-03-05. (:issue:`761`)
81+
* Updated the file for inverter parameters for the CEC model, from the SAM file
82+
dated 2018-3-18 to the SAM file dated 2019-03-05. (:issue:`761`)
7983
* Added recombination current parameters to bishop88 single-diode functions and also
8084
to :py:func:`pvlib.pvsystem.max_power_point`. (:issue:`762`)
8185

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

-5,103
This file was deleted.

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

+3,267
Large diffs are not rendered by default.

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

-19,257
This file was deleted.

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

+21,538
Large diffs are not rendered by default.

pvlib/pvsystem.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1822,7 +1822,7 @@ def retrieve_sam(name=None, path=None):
18221822
os.path.dirname(os.path.abspath(__file__)), 'data')
18231823
if name == 'cecmod':
18241824
csvdata = os.path.join(
1825-
data_path, 'sam-library-cec-modules-2017-6-5.csv')
1825+
data_path, 'sam-library-cec-modules-2019-03-05.csv')
18261826
elif name == 'sandiamod':
18271827
csvdata = os.path.join(
18281828
data_path, 'sam-library-sandia-modules-2015-6-30.csv')
@@ -1832,7 +1832,7 @@ def retrieve_sam(name=None, path=None):
18321832
# Allowing either, to provide for old code,
18331833
# while aligning with current expectations
18341834
csvdata = os.path.join(
1835-
data_path, 'sam-library-cec-inverters-2018-3-18.csv')
1835+
data_path, 'sam-library-cec-inverters-2019-03-05.csv')
18361836
else:
18371837
raise ValueError('invalid name {}'.format(name))
18381838
elif path is not None:

pvlib/test/test_pvsystem.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,14 @@ def test_retrieve_sam_cecmod():
276276
'Adjust',
277277
'gamma_r',
278278
'Version',
279+
'STC',
279280
'PTC',
280281
'Technology',
282+
'Bifacial',
283+
'Length',
284+
'Width',
281285
]
282-
module = 'iTek_iT_300_HE'
286+
module = 'Itek_Energy_LLC_iT_300_HE'
283287
assert module in data
284288
assert set(data[module].keys()) == set(keys)
285289

@@ -306,8 +310,10 @@ def test_retrieve_sam_cecinverter():
306310
'Idcmax',
307311
'Mppt_low',
308312
'Mppt_high',
313+
'CEC_Date',
314+
'CEC_Type',
309315
]
310-
inverter = 'Solectria__PVI_5300_5300_P_208V__CEC_2008_'
316+
inverter = 'Yaskawa_Solectria_Solar__PVI_5300_208__208V_'
311317
assert inverter in data
312318
assert set(data[inverter].keys()) == set(keys)
313319

0 commit comments

Comments
 (0)