Skip to content

Commit 9c52070

Browse files
echedey-lscwhanse
andcommitted
Some None's missed
F: (?<spaces> {8}| {4})(?<name>\w*) : [Nn]one[ ,]*(?<type>.*), optional$ R: $1$2 : $3, optional Co-Authored-By: Cliff Hansen <[email protected]>
1 parent c75a662 commit 9c52070

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

pvlib/irradiance.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1776,7 +1776,7 @@ def dirint(ghi, solar_zenith, times, pressure=101325., use_delta_kt_prime=True,
17761776
GHI points is 1.5 hours or greater. If use_delta_kt_prime=True,
17771777
input data must be Series.
17781778
1779-
temp_dew : None, float, or array-like, optional
1779+
temp_dew : float, or array-like, optional
17801780
Surface dew point temperatures, in degrees C. Values of temp_dew
17811781
may be numeric or NaN. Any single time period point with a
17821782
temp_dew=NaN does not have dew point improvements applied. If
@@ -2025,7 +2025,7 @@ def dirindex(ghi, ghi_clearsky, dni_clearsky, zenith, times, pressure=101325.,
20252025
GHI points is 1.5 hours or greater. If use_delta_kt_prime=True,
20262026
input data must be Series.
20272027
2028-
temp_dew : None, float, or array-like, optional
2028+
temp_dew : float, or array-like, optional
20292029
Surface dew point temperatures, in degrees C. Values of temp_dew
20302030
may be numeric or NaN. Any single time period point with a
20312031
temp_dew=NaN does not have dew point improvements applied. If
@@ -2133,7 +2133,7 @@ def gti_dirint(poa_global, aoi, solar_zenith, solar_azimuth, times,
21332133
GHI points is 1.5 hours or greater. If use_delta_kt_prime=True,
21342134
input data must be Series.
21352135
2136-
temp_dew : None, float, or array-like, optional
2136+
temp_dew : float, or array-like, optional
21372137
Surface dew point temperatures, in degrees C. Values of temp_dew
21382138
may be numeric or NaN. Any single time period point with a
21392139
temp_dew=NaN does not have dew point improvements applied. If

pvlib/location.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def get_solarposition(self, times, pressure=None, temperature=12,
173173
----------
174174
times : pandas.DatetimeIndex
175175
Must be localized or UTC will be assumed.
176-
pressure : None, float, or array-like, optional
176+
pressure : float, or array-like, optional
177177
If not specified, pressure will be calculated using
178178
:py:func:`pvlib.atmosphere.alt2pres` and ``self.altitude``.
179179
temperature : None, float, or array-like, default 12

pvlib/modelchain.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -471,35 +471,35 @@ class ModelChain:
471471
airmass_model : str, default 'kastenyoung1989'
472472
Passed to location.get_airmass.
473473
474-
dc_model : None, str, or function, optional
474+
dc_model : str, or function, optional
475475
If not specified, the model will be inferred from the parameters that
476476
are common to all of system.arrays[i].module_parameters.
477477
Valid strings are 'sapm', 'desoto', 'cec', 'pvsyst', 'pvwatts'.
478478
The ModelChain instance will be passed as the first argument
479479
to a user-defined function.
480480
481-
ac_model : None, str, or function, optional
481+
ac_model : str, or function, optional
482482
If not specified, the model will be inferred from the parameters that
483483
are common to all of system.inverter_parameters.
484484
Valid strings are 'sandia', 'adr', 'pvwatts'. The
485485
ModelChain instance will be passed as the first argument to a
486486
user-defined function.
487487
488-
aoi_model : None, str, or function, optional
488+
aoi_model : str, or function, optional
489489
If not specified, the model will be inferred from the parameters that
490490
are common to all of system.arrays[i].module_parameters.
491491
Valid strings are 'physical', 'ashrae', 'sapm', 'martin_ruiz',
492492
'interp' and 'no_loss'. The ModelChain instance will be passed as the
493493
first argument to a user-defined function.
494494
495-
spectral_model : None, str, or function, optional
495+
spectral_model : str, or function, optional
496496
If not specified, the model will be inferred from the parameters that
497497
are common to all of system.arrays[i].module_parameters.
498498
Valid strings are 'sapm', 'first_solar', 'no_loss'.
499499
The ModelChain instance will be passed as the first argument to
500500
a user-defined function.
501501
502-
temperature_model : None, str or function, optional
502+
temperature_model : str or function, optional
503503
Valid strings are: 'sapm', 'pvsyst', 'faiman', 'fuentes', 'noct_sam'.
504504
The ModelChain instance will be passed as the first argument to a
505505
user-defined function.

pvlib/pvsystem.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class PVSystem:
148148
Describes the module's construction. Valid strings are 'glass_polymer'
149149
and 'glass_glass'. Used for cell and module temperature calculations.
150150
151-
module_parameters : None, dict or Series, optional
151+
module_parameters : dict or Series, optional
152152
Module parameters as defined by the SAPM, CEC, or other.
153153
154154
temperature_model_parameters : None, dict or Series, default None.
@@ -166,14 +166,14 @@ class PVSystem:
166166
May be used to look up the inverter_parameters dictionary
167167
via some other method.
168168
169-
inverter_parameters : None, dict or Series, optional
169+
inverter_parameters : dict or Series, optional
170170
Inverter parameters as defined by the SAPM, CEC, or other.
171171
172172
racking_model : None or string, default 'open_rack'
173173
Valid strings are 'open_rack', 'close_mount', and 'insulated_back'.
174174
Used to identify a parameter set for the SAPM cell temperature model.
175175
176-
losses_parameters : None, dict or Series, optional
176+
losses_parameters : dict or Series, optional
177177
Losses parameters as defined by PVWatts or other.
178178
179179
name : string, optional
@@ -331,9 +331,9 @@ def get_irradiance(self, solar_zenith, solar_azimuth, dni, ghi, dhi,
331331
dni_extra : None, float, Series or tuple of float or Series,\
332332
default None
333333
Extraterrestrial direct normal irradiance. [W/m2]
334-
airmass : None, float or Series, optional
334+
airmass : float or Series, optional
335335
Airmass. [unitless]
336-
albedo : None, float or Series, optional
336+
albedo : float or Series, optional
337337
Ground surface albedo. [unitless]
338338
model : String, default 'haydavies'
339339
Irradiance model.
@@ -925,7 +925,7 @@ class Array:
925925
Describes the module's construction. Valid strings are 'glass_polymer'
926926
and 'glass_glass'. Used for cell and module temperature calculations.
927927
928-
module_parameters : None, dict or Series, optional
928+
module_parameters : dict or Series, optional
929929
Parameters for the module model, e.g., SAPM, CEC, or other.
930930
931931
temperature_model_parameters : None, dict or Series, default None.
@@ -1095,11 +1095,11 @@ def get_irradiance(self, solar_zenith, solar_azimuth, dni, ghi, dhi,
10951095
Global horizontal irradiance
10961096
dhi : float or Series
10971097
Diffuse horizontal irradiance. [W/m2]
1098-
dni_extra : None, float or Series, optional
1098+
dni_extra : float or Series, optional
10991099
Extraterrestrial direct normal irradiance. [W/m2]
1100-
airmass : None, float or Series, optional
1100+
airmass : float or Series, optional
11011101
Airmass. [unitless]
1102-
albedo : None, float or Series, optional
1102+
albedo : float or Series, optional
11031103
Ground surface albedo. [unitless]
11041104
model : String, default 'haydavies'
11051105
Irradiance model.

0 commit comments

Comments
 (0)