Skip to content

Commit 2623253

Browse files
committed
If None -> If not specified
1 parent fb8a1b2 commit 2623253

File tree

9 files changed

+21
-21
lines changed

9 files changed

+21
-21
lines changed

pvlib/clearsky.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,8 +704,8 @@ def detect_clearsky(measured, clearsky, times=None, infer_limits=False,
704704
clearsky : array or Series
705705
Time series of the expected clearsky GHI. [W/m2]
706706
times : DatetimeIndex, optional
707-
Times of measured and clearsky values. If None the index of measured
708-
will be used.
707+
Times of measured and clearsky values. If not specified the index of
708+
measured will be used.
709709
infer_limits : bool, default False
710710
If True, does not use passed in kwargs (or defaults), but instead
711711
interpolates these values from Table 1 in [2]_.

pvlib/iotools/sodapro.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ def get_cams(latitude, longitude, start, end, email, identifier='mcclear',
7474
identifier : {'mcclear', 'cams_radiation'}
7575
Specify whether to retrieve CAMS Radiation or McClear parameters
7676
altitude : float, optional
77-
Altitude in meters. If None, then the altitude is determined from the
78-
NASA SRTM database
77+
Altitude in meters. If not specified, then the altitude is
78+
determined from the NASA SRTM database
7979
time_step : str, {'1min', '15min', '1h', '1d', '1M'}, default '1h'
8080
Time step of the time series, either 1 minute, 15 minute, hourly,
8181
daily, or monthly.

pvlib/irradiance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1386,7 +1386,7 @@ def disc(ghi, solar_zenith, datetime_or_doy, pressure=101325,
13861386
pd.DatetimeIndex.dayofyear, or pd.DatetimeIndex.
13871387
13881388
pressure : None or numeric, default 101325
1389-
Site pressure in Pascal. If None, relative airmass is used
1389+
Site pressure in Pascal. If not specified, relative airmass is used
13901390
instead of absolute (pressure-corrected) airmass.
13911391
13921392
min_cos_zenith : numeric, default 0.065

pvlib/ivtools/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def rectify_iv_curve(voltage, current, decimals=None):
138138
current : numeric [A]
139139
decimals : int, optional
140140
number of decimal places to which voltage is rounded to remove
141-
duplicated points. If None, no rounding is done.
141+
duplicated points. If not specified, no rounding is done.
142142
143143
Returns
144144
-------

pvlib/location.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def get_solarposition(self, times, pressure=None, temperature=12,
174174
times : pandas.DatetimeIndex
175175
Must be localized or UTC will be assumed.
176176
pressure : None, float, or array-like, optional
177-
If None, pressure will be calculated using
177+
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
180180
@@ -213,7 +213,7 @@ def get_clearsky(self, times, model='ineichen', solar_position=None,
213213
DataFrame with columns 'apparent_zenith', 'zenith',
214214
'apparent_elevation'.
215215
dni_extra : numeric, optional
216-
If None, will be calculated from times.
216+
If not specified, will be calculated from times.
217217
218218
kwargs
219219
Extra parameters passed to the relevant functions. Climatological

pvlib/modelchain.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,11 @@ def basic_chain(times, latitude, longitude,
122122
:py:func:`inverter.sandia` for details.
123123
124124
irradiance : DataFrame, optional
125-
If None, calculates clear sky data.
125+
If not specified, calculates clear sky data.
126126
Columns must be 'dni', 'ghi', 'dhi'.
127127
128128
weather : DataFrame, optional
129-
If None, assumes air temperature is 20 C and
129+
If not specified, assumes air temperature is 20 C and
130130
wind speed is 0 m/s.
131131
Columns must be 'wind_speed', 'temp_air'.
132132
@@ -140,11 +140,11 @@ def basic_chain(times, latitude, longitude,
140140
Passed to atmosphere.relativeairmass.
141141
142142
altitude : float, optional
143-
If None, computed from pressure. Assumed to be 0 m
143+
If not specified, computed from pressure. Assumed to be 0 m
144144
if pressure is also None.
145145
146146
pressure : float, optional
147-
If None, computed from altitude. Assumed to be 101325 Pa
147+
If not specified, computed from altitude. Assumed to be 101325 Pa
148148
if altitude is also None.
149149
150150
**kwargs
@@ -473,28 +473,28 @@ class ModelChain:
473473
Passed to location.get_airmass.
474474
475475
dc_model : None, str, or function, optional
476-
If None, the model will be inferred from the parameters that
476+
If not specified, the model will be inferred from the parameters that
477477
are common to all of system.arrays[i].module_parameters.
478478
Valid strings are 'sapm', 'desoto', 'cec', 'pvsyst', 'pvwatts'.
479479
The ModelChain instance will be passed as the first argument
480480
to a user-defined function.
481481
482482
ac_model : None, str, or function, optional
483-
If None, the model will be inferred from the parameters that
483+
If not specified, the model will be inferred from the parameters that
484484
are common to all of system.inverter_parameters.
485485
Valid strings are 'sandia', 'adr', 'pvwatts'. The
486486
ModelChain instance will be passed as the first argument to a
487487
user-defined function.
488488
489489
aoi_model : None, str, or function, optional
490-
If None, the model will be inferred from the parameters that
490+
If not specified, the model will be inferred from the parameters that
491491
are common to all of system.arrays[i].module_parameters.
492492
Valid strings are 'physical', 'ashrae', 'sapm', 'martin_ruiz',
493493
'no_loss'. The ModelChain instance will be passed as the
494494
first argument to a user-defined function.
495495
496496
spectral_model : None, str, or function, optional
497-
If None, the model will be inferred from the parameters that
497+
If not specified, the model will be inferred from the parameters that
498498
are common to all of system.arrays[i].module_parameters.
499499
Valid strings are 'sapm', 'first_solar', 'no_loss'.
500500
The ModelChain instance will be passed as the first argument to

pvlib/pvsystem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2383,8 +2383,8 @@ def singlediode(photocurrent, saturation_current, resistance_series,
23832383
(coulombs). ``0 < nNsVth``. [V]
23842384
23852385
ivcurve_pnts : int, optional
2386-
Number of points in the desired IV curve. If None or 0, no points on
2387-
the IV curves will be produced.
2386+
Number of points in the desired IV curve. If not specified or 0,
2387+
no points on the IV curves will be produced.
23882388
23892389
.. deprecated:: 0.10.0
23902390
Use :py:func:`pvlib.pvsystem.v_from_i` and

pvlib/solarposition.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ def get_solarposition(time, latitude, longitude,
5252
negative to west.
5353
5454
altitude : float, optional
55-
If None, computed from pressure. Assumed to be 0 m
55+
If not specified, computed from pressure. Assumed to be 0 m
5656
if pressure is also None.
5757
5858
pressure : float, optional
59-
If None, computed from altitude. Assumed to be 101325 Pa
59+
If not specified, computed from altitude. Assumed to be 101325 Pa
6060
if altitude is also None.
6161
6262
method : string, default 'nrel_numpy'

pvlib/temperature.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ def noct_sam(poa_global, temp_air, wind_speed, noct, module_efficiency,
873873
where A is module area [m^2].
874874
875875
effective_irradiance : numeric, optional
876-
The irradiance that is converted to photocurrent. If None,
876+
The irradiance that is converted to photocurrent. If not specified,
877877
assumed equal to poa_global. [W/m^2]
878878
879879
transmittance_absorptance : numeric, default 0.9

0 commit comments

Comments
 (0)