File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 33import numpy as np
44from scipy import signal
55
6- import matplotlib .pyplot as plt
7-
86class test_sb10yd (unittest .TestCase ):
97
108 def test_sb10yd_cont_exec (self ):
@@ -92,7 +90,7 @@ def test_sb10yd_disc_exec(self):
9290 imag_H_resp = np .imag (H )
9391
9492 n = 2
95- dico = 1 # 0 for continuous time
93+ dico = 1 # 0 for discrete time
9694 flag = 0 # 0 for no constraints on the poles
9795 n_id , * _ = synthesis .sb10yd (
9896 dico , flag , len (omega ),
@@ -136,10 +134,6 @@ def test_sb10yd_disc_allclose(self):
136134 #print(np.max(abs(H)-abs(H_id)), np.max(abs(H_id)-abs(H)))
137135 #print(np.max(abs(H_id)/abs(H)))
138136
139- #plt.loglog(omega, abs(H))
140- #plt.loglog(omega, abs(H_id))
141- #plt.show(block=True)
142-
143137 # Compare given and identified frequency response up to some toleration.
144138 # absolute(a-b) <= atol + rtol*abolute(b), element-wise true
145139 # absolute(a-b) or absolute(b-a) <= atol, for rtol=0 element-wise true
You can’t perform that action at this time.
0 commit comments