Skip to content

Commit

Permalink
Typo in plot_oedi_9068.py (#1996)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
echedey-ls authored Apr 3, 2024
1 parent 2f04c26 commit ccf74ea
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
10 changes: 5 additions & 5 deletions docs/examples/system-models/plot_oedi_9068.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -18,6 +17,7 @@
# For more information about the system, see its `OEDI
# page <https://openei.org/wiki/PVDAQ/Sites/SR_CO>`__.

# sphinx_gallery_thumbnail_path = "_images/OEDI_9068_daily_timeseries.png"
import pvlib
import pandas as pd
import matplotlib.pyplot as plt
Expand Down Expand Up @@ -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')
Expand All @@ -66,15 +66,15 @@
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
# causes them to take their default values.
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.
Expand Down Expand Up @@ -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')

# %%

Expand Down
5 changes: 4 additions & 1 deletion docs/sphinx/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions docs/sphinx/source/whatsnew/v0.10.5.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ Testing

Documentation
~~~~~~~~~~~~~
* Fix variable name typo at
``docs\examples\system-models\plot_oedi_9068.py``, (:pull:`1996`)


Requirements
Expand Down

0 comments on commit ccf74ea

Please sign in to comment.