Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
use raw string for math in docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
hatemhelal committed May 3, 2024
1 parent daa1d1d commit d0eb339
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions mess/orthnorm.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) 2024 Graphcore Ltd. All rights reserved.
"""Orthonormal transformation.
r"""Orthonormal transformation.
Evaluates the transformation matrix :math:`X` that satisfies
Expand All @@ -18,7 +18,7 @@


def canonical(S: FloatNxN) -> FloatNxN:
"""Canonical orthonormal transformation
r"""Canonical orthonormal transformation
.. math:: \mathbf{X} = \mathbf{U} \mathbf{s}^{-1/2}
Expand All @@ -37,7 +37,7 @@ def canonical(S: FloatNxN) -> FloatNxN:


def symmetric(S: FloatNxN) -> FloatNxN:
"""Symmetric orthonormal transformation
r"""Symmetric orthonormal transformation
.. math:: \mathbf{X} = \mathbf{U} \mathbf{s}^{-1/2} \mathbf{U}^T
Expand All @@ -56,7 +56,7 @@ def symmetric(S: FloatNxN) -> FloatNxN:


def cholesky(S: FloatNxN) -> FloatNxN:
"""Cholesky orthonormal transformation
r"""Cholesky orthonormal transformation
.. math:: \mathbf{X} = (\mathbf{L}^{-1})^T
Expand Down
2 changes: 1 addition & 1 deletion mess/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def molecule(name: str) -> Structure:


def nuclear_energy(structure: Structure) -> float:
"""Nuclear electrostatic interaction energy
r"""Nuclear electrostatic interaction energy
Evaluated by taking sum over all unique pairs of atom centers:
Expand Down

0 comments on commit d0eb339

Please sign in to comment.