Skip to content

Commit c775bc0

Browse files
committed
pvsystem.rst edits
1 parent a29acae commit c775bc0

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

docs/sphinx/source/pvsystem.rst

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ default value may be overridden by specifying the `temp_ref` key in the
9797

9898
.. ipython:: python
9999
100-
system.module_parameters['temp_ref'] = 0
100+
system.arrays[0].module_parameters['temp_ref'] = 0
101101
# lower temp_ref should lead to lower DC power than calculated above
102102
pdc = system.pvwatts_dc(1000, 30)
103103
print(pdc)
@@ -124,7 +124,7 @@ passed to `PVSystem.module_parameters`:
124124
inverter_parameters = {'pdc0': 5000, 'eta_inv_nom': 0.96}
125125
system = pvsystem.PVSystem(module_parameters=module_parameters,
126126
inverter_parameters=inverter_parameters)
127-
print(system.module_parameters)
127+
print(system.arrays[0].module_parameters)
128128
print(system.inverter_parameters)
129129
130130
@@ -142,12 +142,9 @@ provided for each array, and the arrays are provided to
142142
array_two = pvsystem.Array(module_parameters=module_parameters)
143143
system_two_arrays = pvsystem.PVSystem(arrays=[array_one, array_two],
144144
inverter_parameters=inverter_parameters)
145-
print(system_two_arrays.module_parameters)
145+
print([array.module_parameters for array in system_two_arrays.arrays])
146146
print(system_two_arrays.inverter_parameters)
147147
148-
Note that in the case of a PV system with multiple arrays, the
149-
:py:class:`~pvlib.pvsystem.PVSystem` attribute `module_parameters` contains
150-
a tuple with the `module_parameters` for each array.
151148
152149
The :py:class:`~pvlib.pvsystem.Array` class includes those
153150
:py:class:`~pvlib.pvsystem.PVSystem` attributes that may vary from array
@@ -188,7 +185,8 @@ these parameters can be specified using the `PVSystem.surface_tilt` and
188185
189186
# single south-facing array at 20 deg tilt
190187
system_one_array = pvsystem.PVSystem(surface_tilt=20, surface_azimuth=180)
191-
print(system_one_array.surface_tilt, system_one_array.surface_azimuth)
188+
print(system_one_array.arrays[0].surface_tilt,
189+
system_one_array.arrays[0].surface_azimuth)
192190
193191
194192
In the case of a PV system with several arrays, the parameters are specified
@@ -201,8 +199,7 @@ for each array using the attributes `Array.surface_tilt` and `Array.surface_azim
201199
array_two = pvsystem.Array(surface_tilt=30, surface_azimuth=220)
202200
system = pvsystem.PVSystem(arrays=[array_one, array_two])
203201
system.num_arrays
204-
system.surface_tilt
205-
system.surface_azimuth
202+
[array.surface_tilt, array.surface_azimuth for array in system.arrays]
206203
207204
208205
The `surface_tilt` and `surface_azimuth` attributes are used in PVSystem
@@ -218,7 +215,8 @@ and `solar_azimuth` as arguments.
218215
219216
# single south-facing array at 20 deg tilt
220217
system_one_array = pvsystem.PVSystem(surface_tilt=20, surface_azimuth=180)
221-
print(system_one_array.surface_tilt, system_one_array.surface_azimuth)
218+
print(system_one_array.arrays[0].surface_tilt,
219+
system_one_array.arrays[0].surface_azimuth)
222220
223221
# call get_aoi with solar_zenith, solar_azimuth
224222
aoi = system_one_array.get_aoi(solar_zenith=30, solar_azimuth=180)

0 commit comments

Comments
 (0)