Skip to content

Fix example in docstring pvsystem.py #1833

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/sphinx/source/whatsnew/v0.10.2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ Documentation
(:issue:`1811`, :pull:`1812`)
* Removed Stickler-CI integration as the service has ceased June 2023.
(:issue:`1722`, :pull:`1723`)
* Fix and update example in :py:func:`pvlib.pvsystem.retrieve_sam`.
(:issue:`1741`, :pull:`1833`)

Requirements
~~~~~~~~~~~~
Expand All @@ -45,3 +47,4 @@ Contributors
* Adam R. Jensen (:ghuser:`AdamRJensen`)
* Abigail Jones (:ghuser:`ajonesr`)
* Taos Transue (:ghuser:`reepoi`)
* NativeSci (:ghuser:`nativesci`)
34 changes: 18 additions & 16 deletions pvlib/pvsystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -2001,23 +2001,25 @@ def retrieve_sam(name=None, path=None):

>>> from pvlib import pvsystem
>>> invdb = pvsystem.retrieve_sam('CECInverter')
>>> inverter = invdb.AE_Solar_Energy__AE6_0__277V__277V__CEC_2012_
>>> inverter = invdb.AE_Solar_Energy__AE6_0__277V_
>>> inverter
Vac 277.000000
Paco 6000.000000
Pdco 6165.670000
Vdco 361.123000
Pso 36.792300
C0 -0.000002
C1 -0.000047
C2 -0.001861
C3 0.000721
Pnt 0.070000
Vdcmax 600.000000
Idcmax 32.000000
Mppt_low 200.000000
Mppt_high 500.000000
Name: AE_Solar_Energy__AE6_0__277V__277V__CEC_2012_, dtype: float64
Vac 277
Pso 36.197575
Paco 6000.0
Pdco 6158.746094
Vdco 360.0
C0 -0.000002
C1 -0.000026
C2 -0.001253
C3 0.00021
Pnt 1.8
Vdcmax 450.0
Idcmax 17.107628
Mppt_low 100.0
Mppt_high 450.0
CEC_Date NaN
CEC_Type Utility Interactive
Name: AE_Solar_Energy__AE6_0__277V_, dtype: object
'''

if name is not None:
Expand Down