Skip to content

Commit ddb8c03

Browse files
committed
Delete matplotlib import in unittest
1 parent 0d3292d commit ddb8c03

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

slycot/tests/test_sb10yd.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
import numpy as np
44
from scipy import signal
55

6-
import matplotlib.pyplot as plt
7-
86
class 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

0 commit comments

Comments
 (0)