From ccf74ea24cdbaa31f30b88ca278d65e5c80bda80 Mon Sep 17 00:00:00 2001 From: Echedey Luis <80125792+echedey-ls@users.noreply.github.com> Date: Wed, 3 Apr 2024 21:00:36 +0200 Subject: [PATCH] Typo in plot_oedi_9068.py (#1996) * Update plot_oedi_9068.py * Update v0.10.5.rst * Add thumbnail (hopefully) * Multiline config vars not allowed? * who knows if this works * Trim extra spaces * another try * Another try, remove config from output * Update conf.py * Bad news, RTD works incrementally - locally it works * Try to remove config option code block * Update plot_oedi_9068.py * Update plot_oedi_9068.py * Update plot_oedi_9068.py --- docs/examples/system-models/plot_oedi_9068.py | 10 +++++----- docs/sphinx/source/conf.py | 5 ++++- docs/sphinx/source/whatsnew/v0.10.5.rst | 2 ++ 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/docs/examples/system-models/plot_oedi_9068.py b/docs/examples/system-models/plot_oedi_9068.py index ffd66c2499..02487eff77 100644 --- a/docs/examples/system-models/plot_oedi_9068.py +++ b/docs/examples/system-models/plot_oedi_9068.py @@ -5,7 +5,6 @@ A basic model of a 4.7 MW single-axis tracking CdTe system located in Colorado, United States. """ - # %% # This example model uses satellite-based solar resource data from the # NSRDB PSM3. This approach is useful for pre-construction energy modeling @@ -18,6 +17,7 @@ # For more information about the system, see its `OEDI # page `__. +# sphinx_gallery_thumbnail_path = "_images/OEDI_9068_daily_timeseries.png" import pvlib import pandas as pd import matplotlib.pyplot as plt @@ -46,7 +46,7 @@ # "unofficial" information -# We know the system uses 117.5 W CdTe modules. Based on the system vintage +# We know the system uses 117.5 W CdTe modules. Based on the system vintage # (data begins in 2017), it seems likely that the array uses First Solar # Series 4 modules (FS-4117). cec_module_db = pvlib.pvsystem.retrieve_sam('cecmod') @@ -66,7 +66,7 @@ cec_inverter_db = pvlib.pvsystem.retrieve_sam('cecinverter') inverter_parameters = cec_inverter_db['TMEIC__PVL_L1833GRM'] -# We'll use the PVWatts v5 losses model. Set shading to zero as it is +# We'll use the PVWatts v5 losses model. Set shading to zero as it is # accounted for elsewhere in the model, and disable availability loss since # we want a "clean" simulation. # Leaving the other pvwatts loss types (mismatch, wiring, etc) unspecified @@ -74,7 +74,7 @@ losses_parameters = dict(shading=0, availability=0) # Google Street View images show that each row is four modules high, in -# landscape orientation. Assuming the modules are First Solar Series 4, +# landscape orientation. Assuming the modules are First Solar Series 4, # each of them is 600 mm wide. # Assume ~1 centimeter gap between modules (three gaps total). # And from Google Earth, the array's pitch is estimated to be about 7.0 meters. @@ -231,7 +231,7 @@ ambiguous='NaT', nonexistent='NaT') # convert to standard time to match the NSRDB-based simulation -df_inverter_measred = df_inverter_measured.tz_convert('Etc/GMT+7') +df_inverter_measured = df_inverter_measured.tz_convert('Etc/GMT+7') # %% diff --git a/docs/sphinx/source/conf.py b/docs/sphinx/source/conf.py index b868a8a8c7..93c1e63527 100644 --- a/docs/sphinx/source/conf.py +++ b/docs/sphinx/source/conf.py @@ -364,8 +364,11 @@ def setup(app): 'backreferences_dir': 'reference/generated/gallery_backreferences', # Modules for which function/class level galleries are created. In - # this case only pvlib, could include others though. must be tuple of str + # this case only pvlib, could include others though. Must be tuple of str 'doc_module': ('pvlib',), + + # https://sphinx-gallery.github.io/dev/configuration.html#removing-config-comments # noqa: E501 + 'remove_config_comments': True, } # supress warnings in gallery output # https://sphinx-gallery.github.io/stable/configuration.html diff --git a/docs/sphinx/source/whatsnew/v0.10.5.rst b/docs/sphinx/source/whatsnew/v0.10.5.rst index e7097ea5b4..150c59eb40 100644 --- a/docs/sphinx/source/whatsnew/v0.10.5.rst +++ b/docs/sphinx/source/whatsnew/v0.10.5.rst @@ -23,6 +23,8 @@ Testing Documentation ~~~~~~~~~~~~~ +* Fix variable name typo at + ``docs\examples\system-models\plot_oedi_9068.py``, (:pull:`1996`) Requirements