Skip to content

Commit 183320f

Browse files
echedey-lscwhanse
andcommitted
example: code review (II)
Co-Authored-By: Cliff Hansen <[email protected]>
1 parent c04b70d commit 183320f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

docs/examples/spectrum/plot_martin_ruiz_mismatch.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,7 @@
6666
aoi = irradiance.aoi(surface_tilt, surface_azimuth,
6767
solar_pos['apparent_zenith'], solar_pos['azimuth'])
6868

69-
# %%
70-
# Let's consider this the irradiance components without spectral modifiers.
71-
# We can calculate the mismatch before and then create a "poa_irrad" var for
72-
# modified components directly, but we want to show the output difference.
73-
# Also, note that :py:func:`pvlib.spectrum.martin_ruiz` result is designed to
74-
# make it easy to multiply each modifier and the irradiance component with a
75-
# single line of code, if you get this dataframe before.
76-
69+
# Get dataframe with all components and global (includes 'poa_direct')
7770
poa_irrad = irradiance.poa_components(aoi, weather_data['dni'],
7871
poa_sky_diffuse, poa_ground_diffuse)
7972

0 commit comments

Comments
 (0)