Skip to content

Commit 216386e

Browse files
RDaxinicwhanse
andauthored
Clarify which SAPM parameters are required by module in pvsystem.sapm (#2435)
* Update pvsystem.py * Update v0.12.1.rst * Update pvsystem.py * Update pvsystem.py * list non-required param instead, units, formatting * Update pvlib/pvsystem.py Co-authored-by: Cliff Hansen <[email protected]> * update param list (excl. param removed by #2433) * add blank line for bullet list rendering * separate C param --------- Co-authored-by: Cliff Hansen <[email protected]>
1 parent 47b8df2 commit 216386e

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ Enhancements
3434
Documentation
3535
~~~~~~~~~~~~~
3636
* Add a supporting reference to :py:func:`pvlib.atmosphere.get_relative_airmass` (:issue:`2390`, :pull:`2424`)
37-
* Documented how `np.nan` values are handled by :py:func:`~pvlib.spectrum.average_photon_energy`
37+
* Document how ``np.nan`` values are handled by :py:func:`~pvlib.spectrum.average_photon_energy`
3838
(:issue:`2423`, :pull:`2426`)
39+
* Clarify which SAPM coefficients are required by the ``module`` parameter in
40+
:py:func:`~pvlib.pvsystem.sapm` (:issue:`2392`, :pull:`2435`)
3941
* Update references in :py:func`~pvlib.irradiance.get_extra_radiation`
4042
(:issue:`2333`, :pull:`2347`)
4143

pvlib/pvsystem.py

+17-4
Original file line numberDiff line numberDiff line change
@@ -2237,12 +2237,25 @@ def sapm(effective_irradiance, temp_cell, module, *, temperature_ref=25,
22372237
22382238
Notes
22392239
-----
2240-
The SAPM parameters which are required in ``module`` are
2241-
listed in the following table.
2242-
22432240
The Sandia module database contains parameter values for a limited set
22442241
of modules. The CEC module database does not contain these parameters.
2245-
Both databases can be accessed using :py:func:`retrieve_sam`.
2242+
Both databases can be accessed using :py:func:`retrieve_sam`. The full list
2243+
of SAPM parameters is presented in the table below. Those that are required
2244+
in the ``module`` parameter to run this model are as follows:
2245+
2246+
* ``C0``, ``C1``, ``C2``, ``C3``
2247+
* ``Isco``
2248+
* ``Impo``
2249+
* ``Voco``
2250+
* ``Vmpo``
2251+
* ``Aisc``
2252+
* ``Aimp``
2253+
* ``Bvoco``
2254+
* ``Mbvoc``
2255+
* ``Bvmpo``
2256+
* ``Mbvmp``
2257+
* ``N``
2258+
* ``Cells_in_series``
22462259
22472260
================ ========================================================
22482261
Key Description

0 commit comments

Comments
 (0)