Skip to content

Commit 0100e0e

Browse files
committed
Proper backslash escaping to avoid deprecation warnings
1 parent 8be52c0 commit 0100e0e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sfs/util.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def asarray_of_rows(a, **kwargs):
159159

160160

161161
def as_xyz_components(components, **kwargs):
162-
"""Convert *components* to `XyzComponents` of `numpy.ndarray`\s.
162+
"""Convert *components* to `XyzComponents` of `numpy.ndarray`\\s.
163163
164164
The *components* are first converted to NumPy arrays (using
165165
:func:`numpy.asarray`) which are then assembled into an
@@ -339,7 +339,7 @@ def normalize_vector(x):
339339

340340

341341
def displacement(v, omega):
342-
"""Particle displacement
342+
r"""Particle displacement
343343
344344
.. math::
345345
@@ -378,7 +378,7 @@ def __init__(self, components):
378378
This class is a subclass of `numpy.ndarray`. It is
379379
one-dimensional (like a plain `list`) and has a length of 3 (or
380380
2, if no z-component is available). It uses ``dtype=object`` in
381-
order to be able to store other `numpy.ndarray`\s of arbitrary
381+
order to be able to store other `numpy.ndarray`\\s of arbitrary
382382
shapes but also scalars, if needed. Because it is a NumPy array
383383
subclass, it can be used in operations with scalars and "normal"
384384
NumPy arrays, as long as they have a compatible shape. Like any

0 commit comments

Comments
 (0)