Skip to content

Commit 232156c

Browse files
echedey-lscwhanse
andcommitted
none's, some more ``'s to variables and some other nones
Co-Authored-By: Cliff Hansen <[email protected]>
1 parent 9c52070 commit 232156c

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

pvlib/iam.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def physical(aoi, n=1.526, K=4.0, L=0.002, *, n_ar=None):
124124
125125
n_ar : numeric, optional
126126
The effective index of refraction of the anti-reflective (AR) coating
127-
(unitless). If n_ar is None (default), no AR coating is applied.
127+
(unitless). If n_ar is not supplied, no AR coating is applied.
128128
A typical value for the effective index of an AR coating is 1.29.
129129
130130
Returns
@@ -338,7 +338,7 @@ def martin_ruiz_diffuse(surface_tilt, a_r=0.16, c1=0.4244, c2=None):
338338
c2 : float
339339
Second fitting parameter for the expressions that approximate the
340340
integral of diffuse irradiance coming from different directions.
341-
If c2 is None, it will be calculated according to the linear
341+
If c2 is not specified, it will be calculated according to the linear
342342
relationship given in [3]_.
343343
344344
Returns

pvlib/iotools/pvgis.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def get_pvgis_hourly(latitude, longitude, start=None, end=None,
9090
userhorizon: list of float, default: None
9191
Optional user specified elevation of horizon in degrees, at equally
9292
spaced azimuth clockwise from north, only valid if ``usehorizon`` is
93-
true, if ``usehorizon`` is true but ``userhorizon`` is ``None`` then
93+
true, if ``usehorizon`` is true but ``userhorizon`` is not specified then
9494
PVGIS will calculate the horizon [4]_
9595
pvcalculation: bool, default: False
9696
Return estimate of hourly PV production.
@@ -312,7 +312,7 @@ def read_pvgis_hourly(filename, pvgis_format=None, map_variables=True):
312312
pvgis_format : str, optional
313313
Format of PVGIS file or buffer. Equivalent to the ``outputformat``
314314
parameter in the PVGIS API. If ``filename`` is a file and
315-
``pvgis_format`` is ``None`` then the file extension will be used to
315+
``pvgis_format`` is not specified then the file extension will be used to
316316
determine the PVGIS format to parse. If ``filename`` is a buffer, then
317317
``pvgis_format`` is required and must be in ``['csv', 'json']``.
318318
map_variables: bool, default True
@@ -336,11 +336,11 @@ def read_pvgis_hourly(filename, pvgis_format=None, map_variables=True):
336336
Raises
337337
------
338338
ValueError
339-
if ``pvgis_format`` is ``None`` and the file extension is neither
339+
if ``pvgis_format`` is not specified and the file extension is neither
340340
``.csv`` nor ``.json`` or if ``pvgis_format`` is provided as
341341
input but isn't in ``['csv', 'json']``
342342
TypeError
343-
if ``pvgis_format`` is ``None`` and ``filename`` is a buffer
343+
if ``pvgis_format`` is not specified and ``filename`` is a buffer
344344
345345
See Also
346346
--------
@@ -575,7 +575,7 @@ def read_pvgis_tmy(filename, pvgis_format=None, map_variables=True):
575575
pvgis_format : str, optional
576576
Format of PVGIS file or buffer. Equivalent to the ``outputformat``
577577
parameter in the PVGIS TMY API. If ``filename`` is a file and
578-
``pvgis_format`` is ``None`` then the file extension will be used to
578+
``pvgis_format`` is not specified then the file extension will be used to
579579
determine the PVGIS format to parse. For PVGIS files from the API with
580580
``outputformat='basic'``, please set ``pvgis_format`` to ``'basic'``.
581581
If ``filename`` is a buffer, then ``pvgis_format`` is required and must
@@ -599,11 +599,11 @@ def read_pvgis_tmy(filename, pvgis_format=None, map_variables=True):
599599
Raises
600600
------
601601
ValueError
602-
if ``pvgis_format`` is ``None`` and the file extension is neither
602+
if ``pvgis_format`` is not specified and the file extension is neither
603603
``.csv``, ``.json``, nor ``.epw``, or if ``pvgis_format`` is provided
604604
as input but isn't in ``['csv', 'epw', 'json', 'basic']``
605605
TypeError
606-
if ``pvgis_format`` is ``None`` and ``filename`` is a buffer
606+
if ``pvgis_format`` is not specified and ``filename`` is a buffer
607607
608608
See Also
609609
--------

pvlib/irradiance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def get_sky_diffuse(surface_tilt, surface_azimuth,
441441
------
442442
ValueError
443443
If model is one of ``'haydavies'``, ``'reindl'``, or ``'perez'`` and
444-
``dni_extra`` is ``None``.
444+
``dni_extra`` is not specified.
445445
446446
Notes
447447
-----

pvlib/pvsystem.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ class PVSystem:
130130
North=0, East=90, South=180, West=270.
131131
132132
albedo : float, optional
133-
Ground surface albedo. If ``None``, then ``surface_type`` is used
133+
Ground surface albedo. If not supplied, then ``surface_type`` is used
134134
to look up a value in ``irradiance.SURFACE_ALBEDOS``.
135-
If ``surface_type`` is also None then a ground surface albedo
135+
If ``surface_type`` is also not supplied then a ground surface albedo
136136
of 0.25 is used.
137137
138138
surface_type : string, optional
@@ -907,9 +907,9 @@ class Array:
907907
If not provided, a FixedMount with zero tilt is used.
908908
909909
albedo : float, optional
910-
Ground surface albedo. If ``None``, then ``surface_type`` is used
910+
Ground surface albedo. If not supplied, then ``surface_type`` is used
911911
to look up a value in ``irradiance.SURFACE_ALBEDOS``.
912-
If ``surface_type`` is also None then a ground surface albedo
912+
If ``surface_type`` is also not supplied then a ground surface albedo
913913
of 0.25 is used.
914914
915915
surface_type : string, optional

pvlib/solarposition.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ def get_solarposition(time, latitude, longitude,
5252
negative to west.
5353
5454
altitude : float, optional
55-
If not specified, computed from pressure. Assumed to be 0 m
56-
if pressure is also None.
55+
If not specified, computed from ``pressure``. Assumed to be 0 m
56+
if ``pressure`` is not supplied.
5757
5858
pressure : float, optional
59-
If not specified, computed from altitude. Assumed to be 101325 Pa
60-
if altitude is also None.
59+
If not specified, computed from ``altitude``. Assumed to be 101325 Pa
60+
if ``altitude`` is not supplied.
6161
6262
method : string, default 'nrel_numpy'
6363
'nrel_numpy' uses an implementation of the NREL SPA algorithm

0 commit comments

Comments
 (0)