

def test_synthesizeChebyshevNTF_2(self):
    'Test function for synthesizeChebyshevNTF() 2/3'
    with catch_warnings(record=True) as w:
        (z, p, k) = ds.synthesizeChebyshevNTF(order=4, OSR=32, opt=1, H_inf=1.5, f0=0.33)
        self.assertTrue((len(w) > 0))
    zref = [((- 0.4513) + 0.8924j), ((- 0.4513) - 0.8924j), ((- 0.5122) + 0.8589j), ((- 0.5122) - 0.8589j)]
    pref = [((- 0.2249) + 0.7665j), ((- 0.2249) - 0.7665j), ((- 0.5506) + 0.6314j), ((- 0.5506) - 0.6314j)]
    kref = 1.0
    self.assertTrue(np.allclose(cplxpair(z), cplxpair(zref), atol=0.0001, rtol=0.0001))
    self.assertTrue(np.allclose(cplxpair(p), cplxpair(pref), atol=0.0001, rtol=0.0001))
    self.assertTrue(np.allclose(k, pref, atol=0.0001, rtol=0.0001))

dataset/ETHPy150Open ggventurini/python-deltasigma/deltasigma/tests/test_synthesizeChebyshevNTF.py TestSynthesizeChebyshevNTF.test_synthesizeChebyshevNTF_2/VarMisuse@222/298 `kref`->`pref`