Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
1628020
Exclude gallery files that start with NX_
echedey-ls Jun 18, 2026
d224073
Rename oedi_9068.py example to NX_... to exclude from sphinx-gallery …
echedey-ls Jun 18, 2026
29fd64a
Fix exclusion regex
echedey-ls Jun 18, 2026
bcb13a3
¿? Add warning into oedi example just in case
echedey-ls Jun 18, 2026
6105d53
Comment editorial
echedey-ls Jun 18, 2026
66c8386
Flake8 doing its thing. Once again.
echedey-ls Jun 18, 2026
7049fc0
Flake8 x2
echedey-ls Jun 18, 2026
60ba786
Flake8 x3
echedey-ls Jun 18, 2026
636a12b
Pin sphinx-gallery to 0.21
echedey-ls Jun 18, 2026
6c9c0b7
Add whatsnew entry
echedey-ls Jun 18, 2026
55ba375
One last ammend to regex
echedey-ls Jun 19, 2026
06d35a6
This is the last ammend to the regex 100% real don't doubt it
echedey-ls Jun 19, 2026
89f1735
Guess what. I'm updating the regex once again
echedey-ls Jun 19, 2026
3bad2f2
Minor edit to whatsnew
echedey-ls Jun 19, 2026
a1db1d2
regex escape separator - Win build was broken
echedey-ls Jun 19, 2026
15c45cb
Document regex on different OSes
echedey-ls Jun 20, 2026
ec8b951
Revive import distutils - IDK why it's there, thou
echedey-ls Jun 20, 2026
4b58f90
Remove distutil leftover
echedey-ls Jul 7, 2026
f750b7c
Merge branch 'main' into fix_some_examples_not_run_by_sphinx
echedey-ls Jul 7, 2026
342fb6b
Merge branch 'main' into fix_some_examples_not_run_by_sphinx
echedey-ls Jul 7, 2026
1a67ca1
Change prefix NX_ -> noplot_
echedey-ls Jul 7, 2026
483cd51
Merge branch 'main' into fix_some_examples_not_run_by_sphinx
echedey-ls Jul 7, 2026
c99d4b1
Forgot to save conf.py
echedey-ls Jul 7, 2026
9d7b70f
flake8 needed love
echedey-ls Jul 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,15 @@
#
# The system has public monitoring data available at the Open Energy Data
# Initiative (OEDI) under `System ID
# 9068 <https://data.openei.org/s3_viewer?bucket=oedi-data-lake&prefix=pvdaq%2F2023-solar-data-prize%2F9068_OEDI%2F>`__.
# 9068 <https://data.openei.org/s3_viewer?bucket=oedi-data-lake&prefix=pvdaq%2F2023-solar-data-prize%2F9068_OEDI%2F>`__. # noqa: E501
# For more information about the system, see its `OEDI
# page <https://openei.org/wiki/PVDAQ/Sites/SR_CO>`__.
#
# .. warning::
# This example requires user-provided credentials to be run at step
# :ref:`Fetch weather data <fetch_weather_data>`. Therefore, it is not
# executed as part of documentation build process and it's more
# susceptible to API changes. Please, report any issues you may find.

# sphinx_gallery_thumbnail_path = "_images/OEDI_9068_daily_timeseries.png"
import pvlib
Expand Down Expand Up @@ -132,6 +138,7 @@
# %%
# Fetch weather data
# ------------------
# .. _fetch_weather_data:
#
# The system does have measured plane-of-array irradiance data, but the
# measurements suffer from row-to-row shading and tracker stalls. In this
Expand Down
17 changes: 12 additions & 5 deletions docs/sphinx/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
# for generating GH links with linenumbers
import inspect

# import distutils before calling pd.show_versions()
# https://github.com/pypa/setuptools/issues/3044
import distutils # noqa: F401
# to escape special characters in sphinx-gallery OS-dependant regex
import re

import pandas as pd

pd.show_versions()
Expand Down Expand Up @@ -384,12 +384,19 @@ def setup(app):
# https://github.com/pvlib/pvlib-python/issues/837
suppress_warnings = ['ref.footnote']

os_re_sep = re.escape(os.path.sep)
# settings for sphinx-gallery
sphinx_gallery_conf = {
'examples_dirs': ['../../examples'], # location of gallery scripts
'gallery_dirs': ['gallery'], # location of generated output
# execute only files starting with plot_
'filename_pattern': 'plot_',

# do not execute gallery examples filenames that begin with noplot_
# first group + sep := match folders up to filename
# negative lookahead + match anything but sep := match filename (if valid)
# https://sphinx-gallery.github.io/stable/configuration.html#parsing-and-executing-examples-via-matching-patterns # noqa: E501
# unix: filename_pattern = '^(.*)/(?!noplot_)([^/]*)$'
# win: filename_pattern = '^(.*)\\\\(?!noplot_)([^\\\\]*)$'
'filename_pattern': rf"^(.*){os_re_sep}(?!noplot_)([^{os_re_sep}]*)$",

# directory where function/class granular galleries are stored
'backreferences_dir': 'reference/generated/gallery_backreferences',
Expand Down
1 change: 1 addition & 0 deletions docs/sphinx/source/whatsnew/v0.15.3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Requirements

Maintenance
~~~~~~~~~~~
* Fix some gallery examples not being run. Only gallery examples whose filename begins with ``noplot_`` will be excluded. (:issue:`2790`, :pull:`2792`)
* Removed unused internal function ``clearsky._is_leap_year`` (:issue:`2768`, :pull:`2813`)
* Fix documentation builds on runner images lacking link-type timezones. (:issue:`2795`, :pull:`2809`)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ doc = [
'matplotlib',
'sphinx == 7.3.7',
'pydata-sphinx-theme == 0.15.4',
'sphinx-gallery',
'sphinx-gallery == 0.21',
'docutils == 0.21',
'pillow',
'sphinx-toggleprompt == 0.5.2',
Expand Down
Loading