@@ -97,7 +97,7 @@ default value may be overridden by specifying the `temp_ref` key in the
97
97
98
98
.. ipython :: python
99
99
100
- system.module_parameters[' temp_ref' ] = 0
100
+ system.arrays[ 0 ]. module_parameters[' temp_ref' ] = 0
101
101
# lower temp_ref should lead to lower DC power than calculated above
102
102
pdc = system.pvwatts_dc(1000 , 30 )
103
103
print (pdc)
@@ -124,7 +124,7 @@ passed to `PVSystem.module_parameters`:
124
124
inverter_parameters = {' pdc0' : 5000 , ' eta_inv_nom' : 0.96 }
125
125
system = pvsystem.PVSystem(module_parameters = module_parameters,
126
126
inverter_parameters = inverter_parameters)
127
- print (system.module_parameters)
127
+ print (system.arrays[ 0 ]. module_parameters)
128
128
print (system.inverter_parameters)
129
129
130
130
@@ -142,12 +142,9 @@ provided for each array, and the arrays are provided to
142
142
array_two = pvsystem.Array(module_parameters = module_parameters)
143
143
system_two_arrays = pvsystem.PVSystem(arrays = [array_one, array_two],
144
144
inverter_parameters = inverter_parameters)
145
- print (system_two_arrays .module_parameters)
145
+ print ([array .module_parameters for array in system_two_arrays.arrays] )
146
146
print (system_two_arrays.inverter_parameters)
147
147
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.
151
148
152
149
The :py:class: `~pvlib.pvsystem.Array ` class includes those
153
150
: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
188
185
189
186
# single south-facing array at 20 deg tilt
190
187
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)
192
190
193
191
194
192
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
201
199
array_two = pvsystem.Array(surface_tilt = 30 , surface_azimuth = 220 )
202
200
system = pvsystem.PVSystem(arrays = [array_one, array_two])
203
201
system.num_arrays
204
- system.surface_tilt
205
- system.surface_azimuth
202
+ [array.surface_tilt, array.surface_azimuth for array in system.arrays]
206
203
207
204
208
205
The `surface_tilt ` and `surface_azimuth ` attributes are used in PVSystem
@@ -218,7 +215,8 @@ and `solar_azimuth` as arguments.
218
215
219
216
# single south-facing array at 20 deg tilt
220
217
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)
222
220
223
221
# call get_aoi with solar_zenith, solar_azimuth
224
222
aoi = system_one_array.get_aoi(solar_zenith = 30 , solar_azimuth = 180 )
0 commit comments