diff --git a/doc/conf.py b/doc/conf.py index 162ba56d4..e40b03677 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -24,6 +24,7 @@ All configuration values have a default; values that are commented out serve to show the default. """ + # ruff: noqa: E402 import datetime import inspect @@ -359,6 +360,11 @@ def setup(app): exclude_patterns = [ "**/Python27*", "**/ccl*", + # prevent sphinx-gallery from causing duplicate source file errors + "gallery/**/*.ipynb", + "gallery/**/*.md5", + "gallery/**/*.zip", + "gallery/**/*.json", "**.ipynb_checkpoints", "_build", ] # , '**/tests*'] diff --git a/doc/gallery-src/framework/run_chartOfNuclides.py b/doc/gallery-src/framework/run_chartOfNuclides.py index f0818d7e4..5a4516ffc 100644 --- a/doc/gallery-src/framework/run_chartOfNuclides.py +++ b/doc/gallery-src/framework/run_chartOfNuclides.py @@ -22,7 +22,9 @@ Our :ref:`extended tutorial for nuclides ` and detailed :py:mod:`nucDirectory docs ` may also be of interest. + """ + import matplotlib.pyplot as plt from armi import configure diff --git a/doc/gallery-src/framework/run_fuelManagement.py b/doc/gallery-src/framework/run_fuelManagement.py index a55adcab2..7512f8c17 100644 --- a/doc/gallery-src/framework/run_fuelManagement.py +++ b/doc/gallery-src/framework/run_fuelManagement.py @@ -13,6 +13,7 @@ # limitations under the License. """ Fuel management in a LWR. +========================= Demo of locating and swapping assemblies in a core with Cartesian geometry. Given a burnup distribution, this swaps high burnup assemblies with low ones. @@ -26,6 +27,7 @@ ARMI to do fuel management. Thus, this example applies a dummy burnup distribution for demonstration purposes. """ + # Tell the gallery to feature the 2nd image # sphinx_gallery_thumbnail_number = 2 import math