Skip to content

Commit 7eef771

Browse files
RDaxinikandersolar
andauthored
Apply suggestions from code review
Co-authored-by: Kevin Anderson <[email protected]>
1 parent b9daa02 commit 7eef771

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

docs/sphinx/source/user_guide/nomenclature.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,10 @@ There is a convention on consistent variable names throughout the library:
142142
solar_zenith
143143
Zenith angle of the sun in degrees
144144

145-
spectra, spectra_components
145+
spectra
146+
spectra_components
146147
Spectral irradiance (components) [Wm⁻²nm⁻¹]. The amount of energy
147-
incident on a horizontal unit area per unit time and per unit
148+
incident on a unit area per unit time and per unit
148149
wavelength. As with broadband irradiance, global spectral irradiance
149150
is composed of direct and diffuse components.
150151

pvlib/spectrum/irradiance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def average_photon_energy(spectra):
190190
spectra : pandas.Series or pandas.DataFrame
191191
192192
Spectral irradiance, must be positive [Wm⁻²nm⁻¹].
193-
See :term:`spectra <spectra, spectra_components>`.
193+
See :term:`spectra`.
194194
195195
A single spectrum must be a :py:class:`pandas.Series` with wavelength
196196
[nm] as the index, while multiple spectra must be rows in a

pvlib/spectrum/spectrl2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def spectrl2(apparent_zenith, aoi, surface_tilt, ground_albedo,
232232
122, each array has shape (122, N) where N is the length of the
233233
input ``apparent_zenith``. All values are spectral irradiance
234234
with units Wm⁻²nm⁻¹, except for `wavelength`, which is in nanometers.
235-
See :term:`spectra_components <spectra, spectra_components>`.
235+
See :term:`spectra_components`.
236236
237237
* wavelength
238238
* dni_extra

0 commit comments

Comments
 (0)