Skip to content

Commit

Permalink
Delete matplotlib import in unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
KybernetikJo committed Aug 23, 2023
1 parent f8bc89c commit e65ec6d
Showing 1 changed file with 1 addition and 7 deletions.
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):

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

0 comments on commit e65ec6d

Please sign in to comment.