|
45 | 45 | """ |
46 | 46 |
|
47 | 47 | # Import functions from within the control system library |
48 | | -# Should probably only import the exact functions we use... |
49 | | -from .bdalg import series, parallel, negate, feedback |
50 | | -from .delay import pade |
51 | | -from .dtime import sample_system |
52 | | -from .freqplot import bode_plot, nyquist_plot, gangof4_plot |
53 | | -from .freqplot import bode, nyquist, gangof4 |
54 | | -from .lti import issiso, timebase, timebaseEqual, isdtime, isctime |
55 | | -from .margins import stability_margins, phase_crossover_frequencies |
56 | | -from .mateqn import lyap, dlyap, care, dare |
57 | | -from .modelsimp import hsvd, modred, balred, era, markov, minreal |
58 | | -from .nichols import nichols_plot, nichols |
59 | | -from .phaseplot import phase_plot, box_grid |
60 | | -from .pzmap import pzmap |
61 | | -from .rlocus import root_locus |
62 | | -from .statefbk import place, lqr, ctrb, obsv, gram, acker |
63 | | -from .statesp import StateSpace |
64 | | -from .timeresp import forced_response, initial_response, step_response, \ |
65 | | - impulse_response |
66 | | -from .xferfcn import TransferFunction |
| 48 | +# Note: the functions we use are specified as __all__ variables in the modules |
| 49 | +from .bdalg import * |
| 50 | +from .delay import * |
| 51 | +from .dtime import * |
| 52 | +from .freqplot import * |
| 53 | +from .lti import * |
| 54 | +from .margins import * |
| 55 | +from .mateqn import * |
| 56 | +from .modelsimp import * |
| 57 | +from .nichols import * |
| 58 | +from .phaseplot import * |
| 59 | +from .pzmap import * |
| 60 | +from .rlocus import * |
| 61 | +from .statefbk import * |
| 62 | +from .statesp import * |
| 63 | +from .timeresp import * |
| 64 | +from .xferfcn import * |
67 | 65 | from .ctrlutil import * |
68 | | -from .frdata import FRD |
69 | | -from .canonical import canonical_form, reachable_form |
| 66 | +from .frdata import * |
| 67 | +from .canonical import * |
70 | 68 |
|
71 | 69 | # Exceptions |
72 | 70 | from .exception import * |
|
77 | 75 | except ImportError: |
78 | 76 | __version__ = "dev" |
79 | 77 |
|
80 | | -# Import some of the more common (and benign) MATLAB shortcuts |
81 | | -# By default, don't import conflicting commands here |
82 | | -#! TODO (RMM, 4 Nov 2012): remove MATLAB dependencies from __init__.py |
83 | | -#! |
84 | | -#! Eventually, all functionality should be in modules *other* than matlab. |
85 | | -#! This will allow inclusion of the matlab module to set up a different set |
86 | | -#! of defaults from the main package. At that point, the matlab module will |
87 | | -#! allow provide compatibility with MATLAB but no package functionality. |
88 | | -#! |
89 | | -from .matlab import ss, tf, ss2tf, tf2ss, drss |
90 | | -from .matlab import pole, zero, evalfr, freqresp, dcgain |
91 | | -from .matlab import nichols, rlocus, margin |
92 | | - # bode and nyquist come directly from freqplot.py |
93 | | -from .matlab import step, impulse, initial, lsim |
94 | | -from .matlab import ssdata, tfdata |
95 | | - |
96 | 78 | # The following is to use Numpy's testing framework |
97 | 79 | # Tests go under directory tests/, benchmarks under directory benchmarks/ |
98 | 80 | from numpy.testing import Tester |
|
0 commit comments