Skip to content

Commit 862e0f0

Browse files
committed
editing docs
1 parent 8aa8d53 commit 862e0f0

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

docs/sphinx/source/package_overview.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ configuration at a handful of sites listed below.
5656
module = sandia_modules['Canadian_Solar_CS5P_220M___2009_']
5757
inverter = sapm_inverters['ABB__MICRO_0_25_I_OUTD_US_208_208V__CEC_2014_']
5858
59-
# specify constant ambient air temp and wind
59+
# specify constant ambient air temp and wind for simplicity
6060
temp_air = 20
6161
wind_speed = 0
6262

pvlib/atmosphere.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,12 @@ def absoluteairmass(airmass_relative, pressure=101325.):
143143

144144
def relativeairmass(zenith, model='kastenyoung1989'):
145145
'''
146-
Gives the relative (not pressure-corrected) airmass
146+
Gives the relative (not pressure-corrected) airmass.
147147
148-
Gives the airmass at sea-level when given a sun zenith angle, z (in
149-
degrees).
150-
The "model" variable allows selection of different airmass models
151-
(described below). "model" must be a valid string. If "model" is not
148+
Gives the airmass at sea-level when given a sun zenith angle
149+
(in degrees).
150+
The ``model`` variable allows selection of different airmass models
151+
(described below). If ``model`` is not
152152
included or is not valid, the default model is 'kastenyoung1989'.
153153
154154
Parameters

pvlib/location.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ def get_clearsky(self, times, model='ineichen', **kwargs):
189189
solpos = self.get_solarposition(times, **kwargs)
190190
cs = clearsky.haurwitz(solpos['apparent_zenith'])
191191
else:
192-
raise ValueError('{} is not a valid clear sky model'.format(model))
192+
raise ValueError('{} is not a valid clear sky model'
193+
.format(model))
193194

194195
return cs
195196

@@ -199,9 +200,9 @@ def get_airmass(self, times=None, solar_position=None,
199200
"""
200201
Calculate the relative and absolute airmass.
201202
202-
Function will calculate the solar zenith and apparent zenith angles,
203-
and choose the appropriate one.
204-
203+
Automatically chooses zenith or apparant zenith
204+
depending on the selected model.
205+
205206
Parameters
206207
----------
207208
times : None or DatetimeIndex
@@ -243,4 +244,4 @@ def get_airmass(self, times=None, solar_position=None,
243244
airmass['airmass_absolute'] = airmass_absolute
244245

245246
return airmass
246-
247+

0 commit comments

Comments
 (0)