def test_mapABCD_1(self):
        """Test function for mapABCD() 1/2"""
        for f0 in self.f0s:
            for form in self.forms:
                for order in self.orders:
                    if f0 != 0. and order % 2 == 1:
                        # odd-order pass band modulator
                        continue
                    # Optimized zero placement
                    print("Testing form: %s, order: %d, f0: %f" % \
                          (form, order, f0))
                    ntf = synthesizeNTF(order, self.osr, 2, self.Hinf, f0)
                    a1, g1, b1, c1 = realizeNTF(ntf, form)
                    # we check realize NTF too
                    self.assertTrue(np.allclose(a1, self.res[f0][form][order]['a'],
                                    atol=1e-4, rtol=1e-3))
                    self.assertTrue(np.allclose(g1, self.res[f0][form][order]['g'],
                                    atol=1e-4, rtol=1e-3))
                    self.assertTrue(np.allclose(b1, self.res[f0][form][order]['b'],
                                    atol=1e-4, rtol=1e-3))
                    self.assertTrue(np.allclose(c1, self.res[f0][form][order]['c'],
                                    atol=1e-4, rtol=1e-3))
                    ABCD = stuffABCD(a1, g1, b1, c1, form)
                    a, g, b, c = mapABCD(ABCD, form)
                    self.assertTrue(np.allclose(a1, a, atol=1e-4, rtol=1e-3))
                    self.assertTrue(np.allclose(g1, g, atol=1e-4, rtol=1e-3))
                    self.assertTrue(np.allclose(b1, b, atol=1e-4, rtol=1e-3))
                    self.assertTrue(np.allclose(c1, c, atol=1e-4, rtol=1e-3))
dataset/ETHPy150Open ggventurini/python-deltasigma/deltasigma/tests/test_mapABCD.py/TestMapABCD.test_mapABCD_1/original