Skip to content

Commit 633ea87

Browse files
RDaxinicwhansekandersolar
authored
Update racking_model options in PVSystem and FixedMount classes (#2232)
* change racking_model default to none, formatting * Update pvsystem.py * Update pvsystem.py * Apply suggestions from code review Co-authored-by: Cliff Hansen <[email protected]> * review suggestions Co-Authored-By: Cliff Hansen <[email protected]> * Update v0.11.2.rst * Update pvlib/pvsystem.py Co-authored-by: Kevin Anderson <[email protected]> * Update pvsystem.py * backticks * Update pvsystem.py * whatsnew remove blank line * Apply suggestions from code review Co-authored-by: Kevin Anderson <[email protected]> * add `insulated` racking model option * erroneous `` * Update v0.11.2.rst * update SingleAxisTrackerMount * Update v0.11.2.rst --------- Co-authored-by: Cliff Hansen <[email protected]> Co-authored-by: Cliff Hansen <[email protected]> Co-authored-by: Kevin Anderson <[email protected]>
1 parent 5df830e commit 633ea87

File tree

2 files changed

+31
-26
lines changed

2 files changed

+31
-26
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ Documentation
2727
~~~~~~~~~~~~~
2828
* Edited docstrings for :py:func:`~pvlib.pvsystem.dc_ohms_from_percent` and
2929
:py:func:`~pvlib.pvsystem.dc_ohmic_losses` for clarity. (:issue:`1601`, :pull:`2229`)
30+
* Added 'freestanding' and 'insulated' `racking_model` options for cell
31+
temperature calculation in :py:class:`~pvlib.pvsystem.PVSystem`
32+
:py:class:`~pvlib.pvsystem.SingleAxisTrackerMount`, and
33+
:py:class:`~pvlib.pvsystem.FixedMount` docstrings. Various formatting edits
34+
for clarity. (:issue:`1942`, :pull:`2232`)
3035
* Added a new citation style guide (:ref:`references`) to the contributing
3136
page. (:issue:`2202`, :pull:`2226`)
3237
* Updated :py:func:`~pvlib.irradiance.reindl` to include definitions of terms

pvlib/pvsystem.py

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from abc import ABC, abstractmethod
1818
from typing import Optional, Union
1919

20-
from pvlib._deprecation import deprecated, warn_deprecated
20+
from pvlib._deprecation import deprecated
2121

2222
import pvlib # used to avoid albedo name collision in the Array class
2323
from pvlib import (atmosphere, iam, inverter, irradiance,
@@ -104,30 +104,30 @@ class PVSystem:
104104
----------
105105
arrays : Array or iterable of Array, optional
106106
An Array or list of arrays that are part of the system. If not
107-
specified a single array is created from the other parameters (e.g.
107+
specified, a single array is created from the other parameters (e.g.
108108
`surface_tilt`, `surface_azimuth`). If specified as a list, the list
109109
must contain at least one Array;
110110
if length of arrays is 0 a ValueError is raised. If `arrays` is
111111
specified the following PVSystem parameters are ignored:
112112
113-
- `surface_tilt`
114-
- `surface_azimuth`
115-
- `albedo`
116-
- `surface_type`
117-
- `module`
118-
- `module_type`
119-
- `module_parameters`
120-
- `temperature_model_parameters`
121-
- `modules_per_string`
122-
- `strings_per_inverter`
113+
- ``surface_tilt``
114+
- ``surface_azimuth``
115+
- ``albedo``
116+
- ``surface_type``
117+
- ``module``
118+
- ``module_type``
119+
- ``module_parameters``
120+
- ``temperature_model_parameters``
121+
- ``modules_per_string``
122+
- ``strings_per_inverter``
123123
124124
surface_tilt: float or array-like, default 0
125125
Surface tilt angles in decimal degrees.
126126
The tilt angle is defined as degrees from horizontal
127127
(e.g. surface facing up = 0, surface facing horizon = 90)
128128
129129
surface_azimuth: float or array-like, default 180
130-
Azimuth angle of the module surface.
130+
Azimuth angle of the module surface in decimal degrees.
131131
North=0, East=90, South=180, West=270.
132132
133133
albedo : float, optional
@@ -142,8 +142,6 @@ class PVSystem:
142142
143143
module : string, optional
144144
The model name of the modules.
145-
May be used to look up the module_parameters dictionary
146-
via some other method.
147145
148146
module_type : string, default 'glass_polymer'
149147
Describes the module's construction. Valid strings are 'glass_polymer'
@@ -154,7 +152,8 @@ class PVSystem:
154152
155153
temperature_model_parameters : dict or Series, optional
156154
Temperature model parameters as required by one of the models in
157-
pvlib.temperature (excluding poa_global, temp_air and wind_speed).
155+
:py:mod:`pvlib.temperature` (excluding ``poa_global``, ``temp_air`` and
156+
``wind_speed``).
158157
159158
modules_per_string: int or float, default 1
160159
See system topology discussion above.
@@ -164,15 +163,14 @@ class PVSystem:
164163
165164
inverter : string, optional
166165
The model name of the inverters.
167-
May be used to look up the inverter_parameters dictionary
168-
via some other method.
169166
170167
inverter_parameters : dict or Series, optional
171168
Inverter parameters as defined by the SAPM, CEC, or other.
172169
173-
racking_model : string, default 'open_rack'
174-
Valid strings are 'open_rack', 'close_mount', and 'insulated_back'.
175-
Used to identify a parameter set for the SAPM cell temperature model.
170+
racking_model : string, optional
171+
Valid strings are 'open_rack', 'close_mount', 'freestanding',
172+
'insulated', or 'insulated_back'.
173+
Used to identify a parameter set for the cell temperature model.
176174
177175
losses_parameters : dict or Series, optional
178176
Losses parameters as defined by PVWatts or other.
@@ -186,7 +184,7 @@ class PVSystem:
186184
Raises
187185
------
188186
ValueError
189-
If `arrays` is not None and has length 0.
187+
If ``arrays`` is not None and has length 0.
190188
191189
See also
192190
--------
@@ -1395,8 +1393,9 @@ class FixedMount(AbstractMount):
13951393
West=270. [degrees]
13961394
13971395
racking_model : str, optional
1398-
Valid strings are 'open_rack', 'close_mount', and 'insulated_back'.
1399-
Used to identify a parameter set for the SAPM cell temperature model.
1396+
Valid strings are 'open_rack', 'close_mount', 'freestanding',
1397+
'insulated', or 'insulated_back'.
1398+
Used to identify a parameter set for the cell temperature model.
14001399
14011400
module_height : float, optional
14021401
The height above ground of the center of the module [m]. Used for
@@ -1472,8 +1471,9 @@ class SingleAxisTrackerMount(AbstractMount):
14721471
`cross_axis_tilt`. [degrees]
14731472
14741473
racking_model : str, optional
1475-
Valid strings are 'open_rack', 'close_mount', and 'insulated_back'.
1476-
Used to identify a parameter set for the SAPM cell temperature model.
1474+
Valid strings are 'open_rack', 'close_mount', 'freestanding',
1475+
'insulated', or 'insulated_back'.
1476+
Used to identify a parameter set for the cell temperature model.
14771477
14781478
module_height : float, optional
14791479
The height above ground of the center of the module [m]. Used for

0 commit comments

Comments
 (0)