Skip to content

Commit 9ab21f1

Browse files
Apply suggestions from code review
Co-authored-by: Ioannis Sifnaios <[email protected]>
1 parent 737d8bb commit 9ab21f1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/examples/spectrum/average_photon_energy.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
# `Modelling Spectral Irradiance
2525
# <https://pvlib-python.readthedocs.io/en/stable/gallery/spectrum/plot_spectrl2_fig51A.html>`_
2626
# example, which reproduces a figure from [4]_. The first step is to
27-
# import the required packages and define some basic system parameters and
27+
# import the required packages and define some basic system parameters
2828
# and meteorological conditions.
2929

3030
# %%
@@ -119,7 +119,7 @@
119119
plt.xlabel(r"Wavelength (nm)")
120120
time_labels = times.strftime("%H:%M")
121121
labels = [
122-
"{}, AM {:0.02f}".format(*vals)
122+
"{}, AM={:0.02f}".format(*vals)
123123
for vals in zip(time_labels, relative_airmass)
124124
]
125125
plt.legend(labels)
@@ -138,7 +138,7 @@
138138
# %%
139139
# Calculating the average photon energy
140140
# -------------------------------------
141-
# To calculate the APE, first we must convert our output spectra from from the
141+
# To calculate the APE, first we must convert our output spectra from the
142142
# simulation into a compatible input for
143143
# :py:func:`pvlib.spectrum.average_photon_energy`. Since we have more than one
144144
# spectral irradiance distribution, a :py:class:`pandas.DataFrame` is
@@ -168,7 +168,7 @@
168168
plt.xlabel(r"Wavelength (nm)")
169169
time_labels = times.strftime("%H:%M")
170170
labels = [
171-
"{}, APE {:0.02f}".format(*vals)
171+
"{}, APE={:0.02f}".format(*vals)
172172
for vals in zip(time_labels, ape)
173173
]
174174
plt.legend(labels)

0 commit comments

Comments
 (0)