Skip to content

Commit 381ff41

Browse files
committed
Update pvsystem.py
1 parent d6379ef commit 381ff41

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pvlib/pvsystem.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2060,7 +2060,13 @@ def retrieve_sam(name=None, path=None):
20602060
CEC_Date NaN
20612061
CEC_Type Utility Interactive
20622062
Name: AE_Solar_Energy__AE6_0__277V_, dtype: object
2063-
"""
2063+
2064+
# using the latest CEC Inverter database, via URL
2065+
>>> inv_db = pvsystem.retrieve_sam(path="https://raw.githubusercontent.com/NREL/SAM/refs/heads/develop/deploy/libraries/CEC%20Inverters.csv")
2066+
>>> inv_db.keys()
2067+
Index(['ABB__PVI_3_0_OUTD_S_US_A__208V_', 'ABB__PVI_3_0_OUTD_S_US_A__240V_', ...],
2068+
dtype='object', length=...)
2069+
""" # noqa: E501
20642070
# error: path was previously silently ignored if name was given GH#2018
20652071
if name is not None and path is not None:
20662072
raise ValueError("Please provide either 'name' or 'path', not both.")

0 commit comments

Comments
 (0)