Skip to content
Snippets Groups Projects
Commit cdf5d5bc authored by Christian Faber's avatar Christian Faber
Browse files

addin prolog to sphinx

parent fc21e1a3
Branches
Tags
No related merge requests found
...@@ -13,16 +13,17 @@ ...@@ -13,16 +13,17 @@
import os import os
import sys import sys
from pathlib import Path from pathlib import Path
# sys.path.insert(0, os.path.abspath('../../src')) # sys.path.insert(0, os.path.abspath('../../src'))
# sys.path.insert(0, os.path.abspath(os.path.join('..', '..', 'src'))) # sys.path.insert(0, os.path.abspath(os.path.join('..', '..', 'src')))
sys.path.append(os.path.abspath('../../src')) sys.path.append(os.path.abspath("../../src"))
# sys.path.append(Path(__file__).parent.parent.as_posix()) # sys.path.append(Path(__file__).parent.parent.as_posix())
# -- Project information ----------------------------------------------------- # -- Project information -----------------------------------------------------
project = 'BioHelpers' project = "BioHelpers"
copyright = '2024, Christian Faber' copyright = "2024, Christian Faber"
author = 'Christian Faber' author = "Christian Faber"
# -- General configuration --------------------------------------------------- # -- General configuration ---------------------------------------------------
...@@ -31,27 +32,29 @@ author = 'Christian Faber' ...@@ -31,27 +32,29 @@ author = 'Christian Faber'
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones. # ones.
extensions = [ extensions = [
'sphinx.ext.duration', "sphinx.ext.duration",
'sphinx.ext.doctest', "sphinx.ext.doctest",
'sphinx.ext.autodoc', "sphinx.ext.autodoc",
'sphinx.ext.napoleon', "sphinx.ext.napoleon",
] ]
# Add any paths that contain templates here, relative to this directory. # Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates'] templates_path = ["_templates"]
# List of patterns, relative to source directory, that match files and # List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files. # directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path. # This pattern also affects html_static_path and html_extra_path.
exclude_patterns = [] exclude_patterns = []
with open("prolog.inc", "r") as file:
rst_prolog = file.readlines()
# -- Options for HTML output ------------------------------------------------- # -- Options for HTML output -------------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for # The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes. # a list of builtin themes.
# #
html_theme = 'sphinx_rtd_theme' html_theme = "sphinx_rtd_theme"
# Add any paths that contain custom static files (such as style sheets) here, # Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files, # relative to this directory. They are copied after the builtin static files,
......
.. # define a hard line break for HTML
.. |br| raw:: html
<br />
\ No newline at end of file
...@@ -82,7 +82,7 @@ def get_rotation_matrix(x: np.ndarray, y: np.ndarray) -> np.ndarray: ...@@ -82,7 +82,7 @@ def get_rotation_matrix(x: np.ndarray, y: np.ndarray) -> np.ndarray:
def get_translation_vector(x: np.ndarray, y: np.ndarray) -> np.ndarray: def get_translation_vector(x: np.ndarray, y: np.ndarray) -> np.ndarray:
"""Get the translation vector :math:`\mathbf{r}` """Get the translation vector :math:`\mathbf{r}`
| **Important Note:** The translation vector differs from Kabsch algorithm, there you translate befor rotating. In Coutsias paper it is the otherway round. **Important Note:** The translation vector differs from Kabsch algorithm, there you translate befor rotating. In Coutsias paper it is the otherway round.
:param x: set of vectors :param x: set of vectors
:type x: np.ndarray :type x: np.ndarray
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment