Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
reset_defaults() at start of each doctest
  • Loading branch information
murrayrm committed Mar 31, 2023
commit 1d7480a410a6210de2acc65d0d7b9092abcf2d43
5 changes: 0 additions & 5 deletions control/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ def set_defaults(module, **keywords):
>>> ct.defaults['freqplot.number_of_samples']
100
>>> # do some customized freqplotting
>>> ct.reset_defaults()

"""
if not isinstance(module, str):
Expand Down Expand Up @@ -209,7 +208,6 @@ def use_matlab_defaults():
--------
>>> ct.use_matlab_defaults()
>>> # do some matlab style plotting
>>> ct.reset_defaults()

"""
set_defaults('freqplot', dB=True, deg=True, Hz=False, grid=True)
Expand All @@ -229,7 +227,6 @@ def use_fbs_defaults():
--------
>>> ct.use_fbs_defaults()
>>> # do some FBS style plotting
>>> ct.reset_defaults()

"""
set_defaults('freqplot', dB=False, deg=True, Hz=False, grid=False)
Expand Down Expand Up @@ -263,7 +260,6 @@ class and functions. If flat is `False`, then matrices are
--------
>>> ct.use_numpy_matrix(True, False)
>>> # do some legacy calculations using np.matrix
>>> ct.reset_defaults()

"""
if flag and warn:
Expand All @@ -285,7 +281,6 @@ def use_legacy_defaults(version):
>>> ct.use_legacy_defaults("0.9.0")
(0, 9, 0)
>>> # do some legacy style plotting
>>> ct.reset_defaults()

"""
import re
Expand Down
1 change: 1 addition & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,4 +282,5 @@ def linkcode_resolve(domain, info):
import control as ct
import control.optimal as obc
import control.flatsys as fs
ct.reset_defaults()
"""