Skip to content

Commit c268c7c

Browse files
author
Benjamin Greiner
committed
more invalid escape sequences
1 parent 4ebe96a commit c268c7c

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

control/bdalg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262

6363

6464
def series(sys1, *sysn):
65-
"""Return the series connection (... \* sys3 \*) sys2 \* sys1
65+
"""Return the series connection (... \\* sys3 \\*) sys2 \\* sys1
6666
6767
Parameters
6868
----------

control/freqplot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def bode_plot(syslist, omega=None,
110110
config.defaults['freqplot.number_of_samples'].
111111
margins : bool
112112
If True, plot gain and phase margin.
113-
\*args, \**kwargs:
113+
\\*args, \\*\\*kwargs:
114114
Additional options to matplotlib (color, linestyle, etc)
115115
116116
Returns
@@ -139,7 +139,7 @@ def bode_plot(syslist, omega=None,
139139
140140
2. If a discrete time model is given, the frequency response is plotted
141141
along the upper branch of the unit circle, using the mapping z = exp(j
142-
\omega dt) where omega ranges from 0 to pi/dt and dt is the discrete
142+
\\omega dt) where omega ranges from 0 to pi/dt and dt is the discrete
143143
timebase. If not timebase is specified (dt = True), dt is set to 1.
144144
145145
Examples
@@ -450,7 +450,7 @@ def nyquist_plot(syslist, omega=None, Plot=True, color=None,
450450
Used to specify the color of the plot
451451
labelFreq : int
452452
Label every nth frequency on the plot
453-
\*args, \**kwargs:
453+
\\*args, \\*\\*kwargs:
454454
Additional options to matplotlib (color, linestyle, etc)
455455
456456
Returns

control/grid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def zgrid(zetas=None, wns=None):
175175
an_x = xret[an_i]
176176
an_y = yret[an_i]
177177
num = '{:1.1f}'.format(a)
178-
ax.annotate("$\\frac{"+num+"\pi}{T}$", xy=(an_x, an_y), xytext=(an_x, an_y), size=9)
178+
ax.annotate(r"$\frac{"+num+r"\pi}{T}$", xy=(an_x, an_y), xytext=(an_x, an_y), size=9)
179179

180180
_final_setup(ax)
181181
return ax, fig

control/iosys.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,7 @@ def _parse_signal(self, spec, signame='input', dictname=None):
12441244

12451245
if isinstance(spec, str):
12461246
# If we got a dotted string, break up into pieces
1247-
namelist = re.split('\.', spec)
1247+
namelist = re.split(r'\.', spec)
12481248

12491249
# For now, only allow signal level of system name
12501250
# TODO: expand to allow nested signal names

control/matlab/wrappers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def dcgain(*args):
130130
-------
131131
gain: ndarray
132132
The gain of each output versus each input:
133-
:math:`y = gain \cdot u`
133+
:math:`y = gain \\cdot u`
134134
135135
Notes
136136
-----
@@ -140,7 +140,7 @@ def dcgain(*args):
140140
All systems are first converted to state space form. The function then
141141
computes:
142142
143-
.. math:: gain = - C \cdot A^{-1} \cdot B + D
143+
.. math:: gain = - C \\cdot A^{-1} \\cdot B + D
144144
'''
145145
#Convert the parameters to state space form
146146
if len(args) == 4:

control/statefbk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def lqr(*args, **keywords):
270270
The lqr() function computes the optimal state feedback controller
271271
that minimizes the quadratic cost
272272
273-
.. math:: J = \int_0^\infty (x' Q x + u' R u + 2 x' N u) dt
273+
.. math:: J = \\int_0^\\infty (x' Q x + u' R u + 2 x' N u) dt
274274
275275
The function can be called with either 3, 4, or 5 arguments:
276276

0 commit comments

Comments
 (0)