Skip to content

Commit ee173f2

Browse files
committed
reset_defaults() at start of each doctest
1 parent 420125b commit ee173f2

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

control/config.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ def set_defaults(module, **keywords):
7575
>>> ct.defaults['freqplot.number_of_samples']
7676
100
7777
>>> # do some customized freqplotting
78-
>>> ct.reset_defaults()
7978
8079
"""
8180
if not isinstance(module, str):
@@ -208,7 +207,6 @@ def use_matlab_defaults():
208207
--------
209208
>>> ct.use_matlab_defaults()
210209
>>> # do some matlab style plotting
211-
>>> ct.reset_defaults()
212210
213211
"""
214212
set_defaults('freqplot', dB=True, deg=True, Hz=False, grid=True)
@@ -228,7 +226,6 @@ def use_fbs_defaults():
228226
--------
229227
>>> ct.use_fbs_defaults()
230228
>>> # do some FBS style plotting
231-
>>> ct.reset_defaults()
232229
233230
"""
234231
set_defaults('freqplot', dB=False, deg=True, Hz=False, grid=False)
@@ -262,7 +259,6 @@ class and functions. If flat is `False`, then matrices are
262259
--------
263260
>>> ct.use_numpy_matrix(True, False)
264261
>>> # do some legacy calculations using np.matrix
265-
>>> ct.reset_defaults()
266262
267263
"""
268264
if flag and warn:
@@ -284,7 +280,6 @@ def use_legacy_defaults(version):
284280
>>> ct.use_legacy_defaults("0.9.0")
285281
(0, 9, 0)
286282
>>> # do some legacy style plotting
287-
>>> ct.reset_defaults()
288283
289284
"""
290285
import re

doc/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,4 +279,5 @@ def linkcode_resolve(domain, info):
279279
import control as ct
280280
import control.optimal as obc
281281
import control.flatsys as fs
282+
ct.reset_defaults()
282283
"""

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy