Skip to content
Prev Previous commit
Next Next commit
Delete matplotlib import in unittest
  • Loading branch information
KybernetikJo committed Aug 25, 2023
commit 95676942c5655f501d0e471c282ac6f011a67c4a
8 changes: 1 addition & 7 deletions slycot/tests/test_sb10yd.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import numpy as np
from scipy import signal

import matplotlib.pyplot as plt

class test_sb10yd(unittest.TestCase):
Comment thread
bnavigator marked this conversation as resolved.
Outdated

def test_sb10yd_cont_exec(self):
Expand Down Expand Up @@ -92,7 +90,7 @@ def test_sb10yd_disc_exec(self):
imag_H_resp = np.imag(H)

n = 2
dico = 1 # 0 for continuous time
dico = 1 # 0 for discrete time
flag = 0 # 0 for no constraints on the poles
n_id, *_ = synthesis.sb10yd(
dico, flag, len(omega),
Expand Down Expand Up @@ -136,10 +134,6 @@ def test_sb10yd_disc_allclose(self):
#print(np.max(abs(H)-abs(H_id)), np.max(abs(H_id)-abs(H)))
#print(np.max(abs(H_id)/abs(H)))

#plt.loglog(omega, abs(H))
#plt.loglog(omega, abs(H_id))
#plt.show(block=True)

# Compare given and identified frequency response up to some toleration.
# absolute(a-b) <= atol + rtol*abolute(b), element-wise true
# absolute(a-b) or absolute(b-a) <= atol, for rtol=0 element-wise true
Expand Down