Skip to content

Commit

Permalink
embedded some jupyter notebooks but still needs iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
arthur-lin1027 committed Dec 13, 2024
1 parent 45d2b0e commit e91165c
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# sphinx dependencies
Sphinx==7.2.6
sphinx-rtd-theme==2.0.0
sphinx-gallery # convert python files into nice documentation
sphinx-tabs # tabs for code examples (one tab per language)


--find-links https://download.pytorch.org/whl/torch_stable.html
torch==1.11.0+cpu
Expand Down
7 changes: 7 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,15 @@
"sphinx.ext.napoleon",
"sphinx.ext.mathjax",
"sphinx.ext.coverage",
"sphinx_tabs.tabs",
"sphinx_gallery.gen_gallery"
]

sphinx_gallery_conf = {
'examples_dirs': '../../notebooks', # path to your example scripts
'gallery_dirs': 'auto_examples', # path to where to save gallery generated output
}

sys.path.insert(0, os.path.abspath("../../"))

templates_path = ["_templates"]
Expand Down
32 changes: 30 additions & 2 deletions docs/source/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,37 @@ Examples

Here is a collection of examples that may prove useful.

The first example is a minimal example demonstrating how to create an AniSOAP vector from an ase.Atoms object. It also demonstrates the rotational and translational invariance.
The 1st example is a minimal example demonstrating how to create an AniSOAP vector from an ase.Atoms object. It also demonstrates the rotational and translational invariance.

The 2nd example is an example demonstrating how AniSOAP can be used to coarse-grain benzene and learn benzene crystal energies through linear regression.

.. tabs::

.. group-tab:: Example 1: Invariance

.. container:: sphx-glr-footer sphx-glr-footer-example

.. container:: sphx-glr-download sphx-glr-download-jupyter

:download:`Download Jupyter notebook for this example: Invariances_of_powerspectrum.ipynb <../../notebooks/invariances_example/Invariances_of_powerspectrum.ipynb>`

.. include:: ../../notebooks/invariances_example/Invariances_of_powerspectrum.ipynb
:start-after: start-body
:end-before: end-body

.. group-tab:: Example 2: Benzene Crystals (NEED TO INCLUDE NOTEBOOK)

.. container:: sphx-glr-footer sphx-glr-footer-example

.. container:: sphx-glr-download sphx-glr-download-jupyter

:download:`Download Jupyter notebook for this example: benzene_crystals.ipynb <../../notebooks/invariances_example/Invariances_of_powerspectrum.ipynb>`

.. include:: ../../notebooks/invariances_example/Invariances_of_powerspectrum.ipynb
:start-after: start-body
:end-before: end-body


The second example is an example demonstrating how AniSOAP can be used to coarse-grain benzene and learn benzene crystal energies through linear regression.

.. Note::

Expand Down

0 comments on commit e91165c

Please sign in to comment.