8000 Add sb10yd by KybernetikJo · Pull Request #203 · python-control/Slycot · GitHub
[go: up one dir, main page]

Skip to content

Add sb10yd #203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Aug 26, 2023
Prev Previous commit
Next Next commit
Clean up pytest, get rid of unittest
  • Loading branch information
KybernetikJo committed Aug 25, 2023
commit 4206fef53c90b9c7dd7cf805a70c9f9ba16587b1
8 changes: 2 additions & 6 deletions slycot/tests/test_sb10yd.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import unittest
from slycot import synthesis
import numpy as np
from scipy import signal

class test_sb10yd(unittest.TestCase):
class Test_sb10yd():

def test_sb10yd_cont_exec(self):
"""A simple execution test.
Expand Down Expand Up @@ -137,7 +136,4 @@ def test_sb10yd_disc_allclose(self):
# 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
np.testing.assert_allclose(abs(H_id),abs(H),rtol=0,atol=1.0)

if __name__ == "__main__":
unittest.main()
np.testing.assert_allclose(abs(H_id),abs(H),rtol=0,atol=1.0)
0