8000 Bugfix: correct TestMatlab tests. · XiangPiCha/python-control@b12e132 · GitHub
[go: up one dir, main page]

Skip to content

Commit b12e132

Browse files
committed
Bugfix: correct TestMatlab tests.
Revert gain and phase frequency swap in T 8000 estMatlab.testCombi01. Correct TestMatlab.testMargin.
1 parent 00b2998 commit b12e132

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

control/tests/matlab_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def testMargin(self):
257257
gm, pm, wg, wp = margin(self.siso_ss2);
258258
gm, pm, wg, wp = margin(self.siso_ss2*self.siso_ss2*2);
259259
np.testing.assert_array_almost_equal(
260-
[gm, pm, wg, wp], [1.5451, 75.9933, 0.6559, 1.2720], decimal=3)
260+
[gm, pm, wg, wp], [1.5451, 75.9933, 1.2720, 0.6559], decimal=3)
261261

262262
def testDcgain(self):
263263
#Create different forms of a SISO system
@@ -608,8 +608,8 @@ def testCombi01(self):
608608
# print("%f %f %f %f" % (gm, pm, wg, wp))
609609
self.assertAlmostEqual(gm, 3.32065569155)
610610
self.assertAlmostEqual(pm, 46.9740430224)
611-
self.assertAlmostEqual(wg, 0.0616288455466)
612-
self.assertAlmostEqual(wp, 0.176469728448)
611+
self.assertAlmostEqual(wg, 0.176469728448)
612+
self.assertAlmostEqual(wp, 0.0616288455466)
613613

614614
#! TODO: not yet implemented
615615
# def testMIMOtfdata(self):

0 commit comments

Comments
 (0)
0