Skip to content

Commit 5c20c8c

Browse files
Fix example in docstring pvsystem.py (#1833)
* Update pvsystem.py * Apply Kevin's suggestions Co-Authored-By: Kevin Anderson <[email protected]> --------- Co-authored-by: Kevin Anderson <[email protected]>
1 parent 51910d1 commit 5c20c8c

File tree

2 files changed

+21
-16
lines changed

2 files changed

+21
-16
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ Documentation
3535
(:issue:`1811`, :pull:`1812`)
3636
* Removed Stickler-CI integration as the service has ceased June 2023.
3737
(:issue:`1722`, :pull:`1723`)
38+
* Fix and update example in :py:func:`pvlib.pvsystem.retrieve_sam`.
39+
(:issue:`1741`, :pull:`1833`)
3840

3941
Requirements
4042
~~~~~~~~~~~~
@@ -45,3 +47,4 @@ Contributors
4547
* Adam R. Jensen (:ghuser:`AdamRJensen`)
4648
* Abigail Jones (:ghuser:`ajonesr`)
4749
* Taos Transue (:ghuser:`reepoi`)
50+
* NativeSci (:ghuser:`nativesci`)

pvlib/pvsystem.py

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2001,23 +2001,25 @@ def retrieve_sam(name=None, path=None):
20012001
20022002
>>> from pvlib import pvsystem
20032003
>>> invdb = pvsystem.retrieve_sam('CECInverter')
2004-
>>> inverter = invdb.AE_Solar_Energy__AE6_0__277V__277V__CEC_2012_
2004+
>>> inverter = invdb.AE_Solar_Energy__AE6_0__277V_
20052005
>>> inverter
2006-
Vac 277.000000
2007-
Paco 6000.000000
2008-
Pdco 6165.670000
2009-
Vdco 361.123000
2010-
Pso 36.792300
2011-
C0 -0.000002
2012-
C1 -0.000047
2013-
C2 -0.001861
2014-
C3 0.000721
2015-
Pnt 0.070000
2016-
Vdcmax 600.000000
2017-
Idcmax 32.000000
2018-
Mppt_low 200.000000
2019-
Mppt_high 500.000000
2020-
Name: AE_Solar_Energy__AE6_0__277V__277V__CEC_2012_, dtype: float64
2006+
Vac 277
2007+
Pso 36.197575
2008+
Paco 6000.0
2009+
Pdco 6158.746094
2010+
Vdco 360.0
2011+
C0 -0.000002
2012+
C1 -0.000026
2013+
C2 -0.001253
2014+
C3 0.00021
2015+
Pnt 1.8
2016+
Vdcmax 450.0
2017+
Idcmax 17.107628
2018+
Mppt_low 100.0
2019+
Mppt_high 450.0
2020+
CEC_Date NaN
2021+
CEC_Type Utility Interactive
2022+
Name: AE_Solar_Energy__AE6_0__277V_, dtype: object
20212023
'''
20222024

20232025
if name is not None:

0 commit comments

Comments
 (0)