Skip to content

Commit cb22f24

Browse files
committed
add doc links and n_modules kwargs
1 parent 82f28ba commit cb22f24

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

pvlib/pvsystem.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ def __init__(self, latitude, longitude, tz='UTC', altitude=0,
114114
surface_tilt=0, surface_azimuth=180,
115115
albedo=None, surface_type=None,
116116
module=None, module_parameters=None,
117+
series_modules=None, parallel_modules=None,
117118
inverter=None, inverter_parameters=None,
118119
racking_model=None,
119120
**kwargs):
@@ -135,6 +136,9 @@ def __init__(self, latitude, longitude, tz='UTC', altitude=0,
135136
self.module = module
136137
self.module_parameters = module_parameters
137138

139+
self.series_modules = series_modules
140+
self.parallel_modules = parallel_modules
141+
138142
self.inverter = inverter
139143
self.inverter_parameters = inverter_parameters
140144

@@ -194,7 +198,7 @@ def get_irradiance(self, solar_zenith, solar_azimuth, dni, ghi, dhi,
194198
# defaults to kwargs, falls back to attributes. complicated.
195199
# harder to support?
196200
def ashraeiam(self, **kwargs):
197-
"""Wrapper around the ashraeiam function.
201+
"""Wrapper around the :func:`ashraeiam` function.
198202
199203
Parameters
200204
----------
@@ -210,7 +214,7 @@ def ashraeiam(self, **kwargs):
210214

211215
# thin wrappers of other pvsystem functions
212216
def physicaliam(self, aoi):
213-
"""Wrapper around the physicaliam function.
217+
"""Wrapper around the :func:`physicaliam` function.
214218
215219
Parameters
216220
----------
@@ -226,7 +230,7 @@ def physicaliam(self, aoi):
226230
def calcparams_desoto(self, poa_global, temp_cell, alpha_isc,
227231
module_parameters,
228232
EgRef, dEgdT, M=1, irrad_ref=1000, temp_ref=25):
229-
"""Wrapper around the calcparams_desoto function.
233+
"""Wrapper around the :func:`calcparams_desoto` function.
230234
231235
Parameters
232236
----------
@@ -243,7 +247,7 @@ def calcparams_desoto(self, poa_global, temp_cell, alpha_isc,
243247

244248
def sapm(self, module, poa_direct, poa_diffuse,
245249
temp_cell, airmass_absolute, aoi):
246-
"""Wrapper around the sapm function.
250+
"""Wrapper around the :func:`sapm` function.
247251
248252
Parameters
249253
----------
@@ -259,7 +263,7 @@ def sapm(self, module, poa_direct, poa_diffuse,
259263

260264
# model now specified by self.racking_model
261265
def sapm_celltemp(self, irrad, wind, temp):
262-
"""Wrapper around the sapm_celltemp function.
266+
"""Wrapper around the :func:`sapm_celltemp` function.
263267
264268
Parameters
265269
----------
@@ -274,7 +278,7 @@ def sapm_celltemp(self, irrad, wind, temp):
274278

275279
def singlediode(self, photocurrent, saturation_current,
276280
resistance_series, resistance_shunt, nNsVth):
277-
"""Wrapper around the singlediode function.
281+
"""Wrapper around the :func:`singlediode` function.
278282
279283
Parameters
280284
----------
@@ -291,7 +295,7 @@ def singlediode(self, photocurrent, saturation_current,
291295

292296
def i_from_v(self, resistance_shunt, resistance_series, nNsVth, voltage,
293297
saturation_current, photocurrent):
294-
"""Wrapper around the i_from_v function.
298+
"""Wrapper around the :func:`i_from_v` function.
295299
296300
Parameters
297301
----------
@@ -307,7 +311,7 @@ def i_from_v(self, resistance_shunt, resistance_series, nNsVth, voltage,
307311

308312
# inverter now specified by self.inverter_parameters
309313
def snlinverter(self, v_dc, p_dc):
310-
"""Wrapper around the snlinverter function.
314+
"""Wrapper around the :func:`snlinverter` function.
311315
312316
Parameters
313317
----------

0 commit comments

Comments
 (0)