From 20651b6c6a8a37f3c284e33b4193fc4e399d2f74 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Mon, 3 Jan 2022 13:22:51 -0500 Subject: [PATCH] Make sure Torus Python classes use raw strings for docstrings --- openmc/surface.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openmc/surface.py b/openmc/surface.py index 2f9618224d..4a174a23b0 100644 --- a/openmc/surface.py +++ b/openmc/surface.py @@ -2190,7 +2190,7 @@ class TorusMixin: class XTorus(TorusMixin, Surface): - """A torus of the form :math:`(x - x_0)^2/B^2 + (\sqrt{(y - y_0)^2 + (z - + r"""A torus of the form :math:`(x - x_0)^2/B^2 + (\sqrt{(y - y_0)^2 + (z - z_0)^2} - A)^2/C^2 - 1 = 0`. Parameters @@ -2259,7 +2259,7 @@ class XTorus(TorusMixin, Surface): np.array([np.inf, np.inf, np.inf])) class YTorus(TorusMixin, Surface): - """A torus of the form :math:`(y - y_0)^2/B^2 + (\sqrt{(x - x_0)^2 + (z - + r"""A torus of the form :math:`(y - y_0)^2/B^2 + (\sqrt{(x - x_0)^2 + (z - z_0)^2} - A)^2/C^2 - 1 = 0`. Parameters @@ -2328,7 +2328,7 @@ class YTorus(TorusMixin, Surface): np.array([np.inf, np.inf, np.inf])) class ZTorus(TorusMixin, Surface): - """A torus of the form :math:`(z - z_0)^2/B^2 + (\sqrt{(x - x_0)^2 + (y - + r"""A torus of the form :math:`(z - z_0)^2/B^2 + (\sqrt{(x - x_0)^2 + (y - y_0)^2} - A)^2/C^2 - 1 = 0`. Parameters