|
12 | 12 | from numpy import inf, nan |
13 | 13 | from numpy.testing import assert_allclose |
14 | 14 |
|
15 | | -from control.frdata import FrequencyResponseData |
16 | | -from control.margins import (margin, phase_crossover_frequencies, |
17 | | - stability_margins) |
18 | | -from control.statesp import StateSpace |
19 | | -from control.xferfcn import TransferFunction |
20 | | -from control.exception import ControlMIMONotImplemented |
| 15 | +from ..frdata import FrequencyResponseData |
| 16 | +from ..margins import margin, phase_crossover_frequencies, stability_margins |
| 17 | +from ..statesp import StateSpace |
| 18 | +from ..xferfcn import TransferFunction |
| 19 | +from ..exception import ControlMIMONotImplemented |
21 | 20 |
|
22 | 21 | s = TransferFunction.s |
23 | 22 |
|
@@ -119,6 +118,8 @@ def test_margin_3input(tsys): |
119 | 118 | (([2], [1, 3, 3, 1]), [1.732, 0.], [-0.25, 2.]), |
120 | 119 | ((np.array([3, 11, 3]) * 1e-4, [1., -2.7145, 2.4562, -0.7408], .1), |
121 | 120 | [1.6235, 0.], [-0.28598, 1.88889]), |
| 121 | + (([200.0], [1.0, 21.0, 20.0, 0.0]), |
| 122 | + [4.47213595, 0], [-0.47619048, inf]), |
122 | 123 | ]) |
123 | 124 | def test_phase_crossover_frequencies(tfargs, omega_ref, gain_ref): |
124 | 125 | """Test phase_crossover_frequencies() function""" |
|
0 commit comments