From ce41b159f3fa47e200ba012b1d0725def9778a9c Mon Sep 17 00:00:00 2001 From: Karthikeyan Singaravelan Date: Sat, 18 Jul 2020 14:48:19 +0000 Subject: [PATCH] Fix deprecation warnings due to invalid escape sequences. --- original/transformations.py | 6 +++--- transforms3d/_gohlketransforms.py | 6 +++--- transforms3d/reflections.py | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/original/transformations.py b/original/transformations.py index 4f1d667..c1d09b6 100644 --- a/original/transformations.py +++ b/original/transformations.py @@ -30,7 +30,7 @@ # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. -"""Homogeneous Transformation Matrices and Quaternions. +r"""Homogeneous Transformation Matrices and Quaternions. A library for calculating 4x4 matrices for translating, rotating, reflecting, scaling, shearing, projecting, orthogonalizing, and superimposing arrays of @@ -887,7 +887,7 @@ def orthogonalization_matrix(lengths, angles): def affine_matrix_from_points(v0, v1, shear=True, scale=True, usesvd=True): - """Return affine transform matrix to register two point sets. + r"""Return affine transform matrix to register two point sets. v0 and v1 are shape (ndims, \*) arrays of at least ndims non-homogeneous coordinates, where ndims is the dimensionality of the coordinate space. @@ -996,7 +996,7 @@ def affine_matrix_from_points(v0, v1, shear=True, scale=True, usesvd=True): def superimposition_matrix(v0, v1, scale=False, usesvd=True): - """Return matrix to transform given 3D point set into second point set. + r"""Return matrix to transform given 3D point set into second point set. v0 and v1 are shape (3, \*) or (4, \*) arrays of at least 3 points. diff --git a/transforms3d/_gohlketransforms.py b/transforms3d/_gohlketransforms.py index d93190d..dacff61 100644 --- a/transforms3d/_gohlketransforms.py +++ b/transforms3d/_gohlketransforms.py @@ -35,7 +35,7 @@ # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. -"""Homogeneous Transformation Matrices and Quaternions. +r"""Homogeneous Transformation Matrices and Quaternions. A library for calculating 4x4 matrices for translating, rotating, reflecting, scaling, shearing, projecting, orthogonalizing, and superimposing arrays of @@ -892,7 +892,7 @@ def orthogonalization_matrix(lengths, angles): def affine_matrix_from_points(v0, v1, shear=True, scale=True, usesvd=True): - """Return affine transform matrix to register two point sets. + r"""Return affine transform matrix to register two point sets. v0 and v1 are shape (ndims, \*) arrays of at least ndims non-homogeneous coordinates, where ndims is the dimensionality of the coordinate space. @@ -1001,7 +1001,7 @@ def affine_matrix_from_points(v0, v1, shear=True, scale=True, usesvd=True): def superimposition_matrix(v0, v1, scale=False, usesvd=True): - """Return matrix to transform given 3D point set into second point set. + r"""Return matrix to transform given 3D point set into second point set. v0 and v1 are shape (3, \*) or (4, \*) arrays of at least 3 points. diff --git a/transforms3d/reflections.py b/transforms3d/reflections.py index b79b2e5..d575f92 100644 --- a/transforms3d/reflections.py +++ b/transforms3d/reflections.py @@ -39,7 +39,7 @@ def rfnorm2mat(normal): .. math:: - R_{ij} = I_{ij} - 2\\frac{a_i a_j}{\|a\|^2} + R_{ij} = I_{ij} - 2\\frac{a_i a_j}{\\|a\\|^2} where $I$ is the identity matrix. """