libra-toolbox 0.6.1.post1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. libra_toolbox-0.6.1.post1/.github/workflows/ci.yml +43 -0
  2. libra_toolbox-0.6.1.post1/.github/workflows/python-publish.yml +70 -0
  3. libra_toolbox-0.6.1.post1/.gitignore +164 -0
  4. libra_toolbox-0.6.1.post1/.readthedocs.yaml +32 -0
  5. libra_toolbox-0.6.1.post1/LICENSE +21 -0
  6. libra_toolbox-0.6.1.post1/PKG-INFO +45 -0
  7. libra_toolbox-0.6.1.post1/README.md +25 -0
  8. libra_toolbox-0.6.1.post1/docs/Makefile +20 -0
  9. libra_toolbox-0.6.1.post1/docs/_static/css/custom.css +3 -0
  10. libra_toolbox-0.6.1.post1/docs/_static/neutron_spectrum.png +0 -0
  11. libra_toolbox-0.6.1.post1/docs/_static/optimisation.png +0 -0
  12. libra_toolbox-0.6.1.post1/docs/_static/prt.png +0 -0
  13. libra_toolbox-0.6.1.post1/docs/_static/tritium_model.png +0 -0
  14. libra_toolbox-0.6.1.post1/docs/conf.py +54 -0
  15. libra_toolbox-0.6.1.post1/docs/examples/diamond_detector.ipynb +234 -0
  16. libra_toolbox-0.6.1.post1/docs/examples/fit_tritium_release.ipynb +667 -0
  17. libra_toolbox-0.6.1.post1/docs/examples/foil_analysis/data.py +148 -0
  18. libra_toolbox-0.6.1.post1/docs/examples/foil_analysis/main.ipynb +340 -0
  19. libra_toolbox-0.6.1.post1/docs/examples/index.rst +34 -0
  20. libra_toolbox-0.6.1.post1/docs/examples/prt.ipynb +510 -0
  21. libra_toolbox-0.6.1.post1/docs/examples/tritium_model.ipynb +363 -0
  22. libra_toolbox-0.6.1.post1/docs/index.rst +59 -0
  23. libra_toolbox-0.6.1.post1/docs/installation.rst +42 -0
  24. libra_toolbox-0.6.1.post1/docs/make.bat +35 -0
  25. libra_toolbox-0.6.1.post1/docs/modules/index.rst +7 -0
  26. libra_toolbox-0.6.1.post1/docs/modules/libra_toolbox.neutron_detection.activation_foils.rst +37 -0
  27. libra_toolbox-0.6.1.post1/docs/modules/libra_toolbox.neutron_detection.diamond.rst +21 -0
  28. libra_toolbox-0.6.1.post1/docs/modules/libra_toolbox.neutron_detection.rst +19 -0
  29. libra_toolbox-0.6.1.post1/docs/modules/libra_toolbox.rst +19 -0
  30. libra_toolbox-0.6.1.post1/docs/modules/libra_toolbox.tritium.rst +37 -0
  31. libra_toolbox-0.6.1.post1/docs/requirements.txt +11 -0
  32. libra_toolbox-0.6.1.post1/libra_toolbox/__init__.py +21 -0
  33. libra_toolbox-0.6.1.post1/libra_toolbox/_version.py +21 -0
  34. libra_toolbox-0.6.1.post1/libra_toolbox/neutron_detection/__init__.py +1 -0
  35. libra_toolbox-0.6.1.post1/libra_toolbox/neutron_detection/activation_foils/__init__.py +1 -0
  36. libra_toolbox-0.6.1.post1/libra_toolbox/neutron_detection/activation_foils/calculations.py +188 -0
  37. libra_toolbox-0.6.1.post1/libra_toolbox/neutron_detection/activation_foils/calibration.py +39 -0
  38. libra_toolbox-0.6.1.post1/libra_toolbox/neutron_detection/activation_foils/compass.py +26 -0
  39. libra_toolbox-0.6.1.post1/libra_toolbox/neutron_detection/activation_foils/explicit.py +110 -0
  40. libra_toolbox-0.6.1.post1/libra_toolbox/neutron_detection/activation_foils/settings.py +17 -0
  41. libra_toolbox-0.6.1.post1/libra_toolbox/neutron_detection/diamond/__init__.py +2 -0
  42. libra_toolbox-0.6.1.post1/libra_toolbox/neutron_detection/diamond/process_data.py +128 -0
  43. libra_toolbox-0.6.1.post1/libra_toolbox/neutron_detection/diamond/prt.py +745 -0
  44. libra_toolbox-0.6.1.post1/libra_toolbox/neutronics/A325_generator_diamond.h5 +0 -0
  45. libra_toolbox-0.6.1.post1/libra_toolbox/neutronics/__init__.py +2 -0
  46. libra_toolbox-0.6.1.post1/libra_toolbox/neutronics/neutron_source.py +89 -0
  47. libra_toolbox-0.6.1.post1/libra_toolbox/neutronics/vault.py +773 -0
  48. libra_toolbox-0.6.1.post1/libra_toolbox/tritium/__init__.py +7 -0
  49. libra_toolbox-0.6.1.post1/libra_toolbox/tritium/lsc_measurements.py +304 -0
  50. libra_toolbox-0.6.1.post1/libra_toolbox/tritium/model.py +340 -0
  51. libra_toolbox-0.6.1.post1/libra_toolbox/tritium/plotting.py +320 -0
  52. libra_toolbox-0.6.1.post1/libra_toolbox.egg-info/PKG-INFO +45 -0
  53. libra_toolbox-0.6.1.post1/libra_toolbox.egg-info/SOURCES.txt +71 -0
  54. libra_toolbox-0.6.1.post1/libra_toolbox.egg-info/dependency_links.txt +1 -0
  55. libra_toolbox-0.6.1.post1/libra_toolbox.egg-info/requires.txt +17 -0
  56. libra_toolbox-0.6.1.post1/libra_toolbox.egg-info/top_level.txt +1 -0
  57. libra_toolbox-0.6.1.post1/pyproject.toml +28 -0
  58. libra_toolbox-0.6.1.post1/setup.cfg +4 -0
  59. libra_toolbox-0.6.1.post1/test/neutron_detection/test_calibration.py +9 -0
  60. libra_toolbox-0.6.1.post1/test/neutron_detection/test_compass.py +12 -0
  61. libra_toolbox-0.6.1.post1/test/neutron_detection/test_diamond.py +160 -0
  62. libra_toolbox-0.6.1.post1/test/neutron_detection/test_prt.py +115 -0
  63. libra_toolbox-0.6.1.post1/test/neutronics/test_neutron_source.py +17 -0
  64. libra_toolbox-0.6.1.post1/test/neutronics/test_vault.py +44 -0
  65. libra_toolbox-0.6.1.post1/test/tritium/TEST_CSV.csv +62 -0
  66. libra_toolbox-0.6.1.post1/test/tritium/test_conversion.py +31 -0
  67. libra_toolbox-0.6.1.post1/test/tritium/test_libra_run_samples.py +83 -0
  68. libra_toolbox-0.6.1.post1/test/tritium/test_libra_samples.py +59 -0
  69. libra_toolbox-0.6.1.post1/test/tritium/test_lsc_file_with_labels.csv +54 -0
  70. libra_toolbox-0.6.1.post1/test/tritium/test_lsc_reader.py +59 -0
  71. libra_toolbox-0.6.1.post1/test/tritium/test_lsc_samples.py +114 -0
  72. libra_toolbox-0.6.1.post1/test/tritium/test_mass_conservation.py +34 -0
  73. libra_toolbox-0.6.1.post1/test/tritium/test_plotting.py +94 -0
@@ -0,0 +1,43 @@
1
+ name: CI
2
+ on: [pull_request, push]
3
+
4
+ jobs:
5
+ build:
6
+ runs-on: ubuntu-latest
7
+
8
+ steps:
9
+ - uses: actions/checkout@v4
10
+
11
+ - name: Set up Conda
12
+ uses: conda-incubator/setup-miniconda@v2
13
+ with:
14
+ activate-environment: myenv
15
+ miniforge-version: latest
16
+ # use-mamba: true
17
+ channels: conda-forge
18
+
19
+ - name: Create Conda environment
20
+ shell: bash -l {0}
21
+ run: |
22
+ conda install -c conda-forge openmc>=0.14.0
23
+
24
+ - name: Install dependencies
25
+ shell: bash -l {0}
26
+ run: |
27
+ python -m pip install .[tests,neutronics]
28
+
29
+ - name: Run tests
30
+ shell: bash -l {0}
31
+ run: |
32
+ python -m pytest test/ --cov libra_toolbox --cov-report xml --cov-report term
33
+
34
+ - name: Run notebook examples
35
+ shell: bash -l {0}
36
+ run: |
37
+ jupyter nbconvert --to python --execute docs/examples/*.ipynb
38
+
39
+ - name: Upload coverage reports to Codecov
40
+ uses: codecov/codecov-action@v5
41
+ with:
42
+ token: ${{ secrets.CODECOV_TOKEN }}
43
+ slug: LIBRA-project/libra-toolbox
@@ -0,0 +1,70 @@
1
+ # This workflow will upload a Python Package to PyPI when a release is created
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3
+
4
+ # This workflow uses actions that are not certified by GitHub.
5
+ # They are provided by a third-party and are governed by
6
+ # separate terms of service, privacy policy, and support
7
+ # documentation.
8
+
9
+ name: Upload Python Package
10
+
11
+ on:
12
+ release:
13
+ types: [published]
14
+
15
+ permissions:
16
+ contents: read
17
+
18
+ jobs:
19
+ release-build:
20
+ runs-on: ubuntu-latest
21
+
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+
25
+ - uses: actions/setup-python@v5
26
+ with:
27
+ python-version: "3.x"
28
+
29
+ - name: Build release distributions
30
+ run: |
31
+ # NOTE: put your own distribution build steps here.
32
+ python -m pip install build
33
+ python -m build
34
+
35
+ - name: Upload distributions
36
+ uses: actions/upload-artifact@v4
37
+ with:
38
+ name: release-dists
39
+ path: dist/
40
+
41
+ pypi-publish:
42
+ runs-on: ubuntu-latest
43
+ needs:
44
+ - release-build
45
+ permissions:
46
+ # IMPORTANT: this permission is mandatory for trusted publishing
47
+ id-token: write
48
+
49
+ # Dedicated environments with protections for publishing are strongly recommended.
50
+ # For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
51
+ environment:
52
+ name: pypi
53
+ # OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
54
+ # url: https://pypi.org/p/YOURPROJECT
55
+ #
56
+ # ALTERNATIVE: if your GitHub Release name is the PyPI project version string
57
+ # ALTERNATIVE: exactly, uncomment the following line instead:
58
+ # url: https://pypi.org/project/YOURPROJECT/${{ github.event.release.name }}
59
+
60
+ steps:
61
+ - name: Retrieve release distributions
62
+ uses: actions/download-artifact@v4
63
+ with:
64
+ name: release-dists
65
+ path: dist/
66
+
67
+ - name: Publish release distributions to PyPI
68
+ uses: pypa/gh-action-pypi-publish@release/v1
69
+ with:
70
+ packages-dir: dist/
@@ -0,0 +1,164 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # poetry
98
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102
+ #poetry.lock
103
+
104
+ # pdm
105
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106
+ #pdm.lock
107
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108
+ # in version control.
109
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
110
+ .pdm.toml
111
+ .pdm-python
112
+ .pdm-build/
113
+
114
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
115
+ __pypackages__/
116
+
117
+ # Celery stuff
118
+ celerybeat-schedule
119
+ celerybeat.pid
120
+
121
+ # SageMath parsed files
122
+ *.sage.py
123
+
124
+ # Environments
125
+ .env
126
+ .venv
127
+ env/
128
+ venv/
129
+ ENV/
130
+ env.bak/
131
+ venv.bak/
132
+
133
+ # Spyder project settings
134
+ .spyderproject
135
+ .spyproject
136
+
137
+ # Rope project settings
138
+ .ropeproject
139
+
140
+ # mkdocs documentation
141
+ /site
142
+
143
+ # mypy
144
+ .mypy_cache/
145
+ .dmypy.json
146
+ dmypy.json
147
+
148
+ # Pyre type checker
149
+ .pyre/
150
+
151
+ # pytype static type analyzer
152
+ .pytype/
153
+
154
+ # Cython debug symbols
155
+ cython_debug/
156
+
157
+ # PyCharm
158
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
159
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
160
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
161
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
162
+ #.idea/
163
+
164
+ **/_version.py
@@ -0,0 +1,32 @@
1
+ # .readthedocs.yaml
2
+ # Read the Docs configuration file
3
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4
+
5
+ # Required
6
+ version: 2
7
+
8
+ # Set the OS, Python version and other tools you might need
9
+ build:
10
+ os: ubuntu-22.04
11
+ tools:
12
+ python: "3.12"
13
+ # You can also specify other tool versions:
14
+ # nodejs: "19"
15
+ # rust: "1.64"
16
+ # golang: "1.19"
17
+
18
+ # Build documentation in the "docs/" directory with Sphinx
19
+ sphinx:
20
+ configuration: docs/conf.py
21
+
22
+ # Optionally build your docs in additional formats such as PDF and ePub
23
+ # formats:
24
+ # - pdf
25
+ # - epub
26
+
27
+ # Optional but recommended, declare the Python requirements required
28
+ # to build your documentation
29
+ # See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
30
+ python:
31
+ install:
32
+ - requirements: docs/requirements.txt
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 LIBRA-project
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,45 @@
1
+ Metadata-Version: 2.4
2
+ Name: libra-toolbox
3
+ Version: 0.6.1.post1
4
+ Summary: Design and analysis tools for LIBRA project
5
+ Author-email: Remi Delaporte-Mathurin <remidm@mit.edu>
6
+ License: MIT License
7
+
8
+ Copyright (c) 2024 LIBRA-project
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ Requires-Python: >=3.10
29
+ License-File: LICENSE
30
+ Requires-Dist: numpy
31
+ Requires-Dist: pint
32
+ Requires-Dist: scipy
33
+ Requires-Dist: matplotlib
34
+ Requires-Dist: sympy
35
+ Requires-Dist: pandas
36
+ Requires-Dist: h5py
37
+ Provides-Extra: neutronics
38
+ Requires-Dist: openmc-data-downloader; extra == "neutronics"
39
+ Provides-Extra: tests
40
+ Requires-Dist: pytest>=5.4.3; extra == "tests"
41
+ Requires-Dist: pytest-cov; extra == "tests"
42
+ Requires-Dist: nbconvert; extra == "tests"
43
+ Requires-Dist: ipykernel; extra == "tests"
44
+ Requires-Dist: requests; extra == "tests"
45
+ Dynamic: license-file
@@ -0,0 +1,25 @@
1
+ # libra-toolbox
2
+
3
+ `libra-toolbox` is a Python package developed by the LIBRA team for neutron detection and tritium analysis. This toolbox provides various modules and functionalities to facilitate scientific research and data analysis for tritium breeding experiments.
4
+
5
+ ## Installation
6
+
7
+ You can find the [installation instructions](https://libra-toolbox.readthedocs.io/en/latest/installation.html#installation) in the documentation.
8
+
9
+ ## Documentation
10
+ The documentation for `libra-toolbox` is built using Sphinx and is [available online](https://libra-toolbox.readthedocs.io/en/latest/). To build the documentation locally, you can use the provided Makefile or make.bat script.
11
+
12
+ ### Building Documentation
13
+ To build the documentation, navigate to the `docs` directory and run:
14
+
15
+ ```
16
+ make html
17
+ ```
18
+
19
+ or on Windows:
20
+
21
+ ```
22
+ make.bat html
23
+ ```
24
+
25
+ The generated documentation will be available in the `docs/_build/html` directory.
@@ -0,0 +1,20 @@
1
+ # Minimal makefile for Sphinx documentation
2
+ #
3
+
4
+ # You can set these variables from the command line, and also
5
+ # from the environment for the first two.
6
+ SPHINXOPTS ?=
7
+ SPHINXBUILD ?= sphinx-build
8
+ SOURCEDIR = .
9
+ BUILDDIR = _build
10
+
11
+ # Put it first so that "make" without argument is like "make help".
12
+ help:
13
+ @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14
+
15
+ .PHONY: help Makefile
16
+
17
+ # Catch-all target: route all unknown targets to Sphinx using the new
18
+ # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19
+ %: Makefile
20
+ @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@@ -0,0 +1,3 @@
1
+ .strike {
2
+ text-decoration: line-through;
3
+ }
@@ -0,0 +1,54 @@
1
+ import os
2
+ import sys
3
+
4
+ sys.path.insert(0, os.path.abspath(".."))
5
+
6
+ # Configuration file for the Sphinx documentation builder.
7
+ #
8
+ # For the full list of built-in configuration values, see the documentation:
9
+ # https://www.sphinx-doc.org/en/master/usage/configuration.html
10
+
11
+ # -- Project information -----------------------------------------------------
12
+ # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
13
+
14
+ project = "libra-toolbox"
15
+ copyright = "2024, Remi Delaporte-Mathurin, LIBRA team"
16
+ author = "Remi Delaporte-Mathurin, LIBRA team"
17
+
18
+ # -- General configuration ---------------------------------------------------
19
+ # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
20
+
21
+ extensions = [
22
+ "sphinx.ext.autodoc",
23
+ "sphinx.ext.napoleon",
24
+ "nbsphinx",
25
+ "sphinx_design",
26
+ ]
27
+
28
+ templates_path = ["_templates"]
29
+ exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "**.ipynb_checkpoints"]
30
+
31
+
32
+ # -- Options for HTML output -------------------------------------------------
33
+ # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
34
+
35
+ html_theme = "pydata_sphinx_theme"
36
+ html_static_path = ["_static"]
37
+
38
+ # Add custom CSS file
39
+ html_css_files = [
40
+ "css/custom.css",
41
+ ]
42
+
43
+ # Optional: Add theme options
44
+ html_theme_options = {
45
+ "show_prev_next": False,
46
+ "navbar_end": ["navbar-icon-links"],
47
+ "icon_links": [
48
+ {
49
+ "name": "GitHub",
50
+ "url": "https://github.com/libra-project/libra-toolbox",
51
+ "icon": "fab fa-github-square",
52
+ },
53
+ ],
54
+ }