Example #1
0
def check_zpk_equality(zpk1, zpk2):
    z1, p1, k1 = zpk1
    z2, p2, k2 = zpk2
    c1 = np.all(close.isclose(np.sort(z1), np.sort(z2)))
    c2 = np.all(close.isclose(np.sort(p1), np.sort(p2)))
    c3 = close.isclose(k1, k2)
    return c1, c2, c3
Example #2
0
 def test_gain(self):
     mag = np.abs(self.filt4.computeFilter(self.f4))
     assert close.isclose(mag, self.g4)
Example #3
0
 def test_reload_DC_Q(self):
     sig = self.katFR2.getSigDC('REFL_Q')
     assert close.isclose(sig, data['dcQ'])
Example #4
0
 def test_DC_I(self):
     sig = self.katFR.getSigDC('REFL_I')
     assert close.isclose(sig, data['dcI'])
Example #5
0
 def test_reload_DC_I(self):
     sig = self.opt2.getSigDC('REFL_I')
     assert close.isclose(sig, data['dcI'])
Example #6
0
 def test_DC_Q(self):
     sig = self.opt.getSigDC('REFL_Q')
     assert close.isclose(sig, data['dcQ'])