def test_mapCtoD_5(self):
        # Non-zero f0 test, short DAC pulse
        f0 = .2
        ABCDc = np.array([[0., 0., 1., -1.],
                          [1., 0., 0., -1.5],
                          [0, 1, 0, 0]])
        tdac = np.array([0.1, 0.4])
        sys_d, Gp = ds.mapCtoD(ABCDc, tdac, f0=f0)
        ABCD = np.vstack((np.hstack((sys_d[0], sys_d[1])),
                          np.hstack((sys_d[2], sys_d[3]))
                        ))
        print(ABCD)
        ABCDref = np.array([[1., 0, 0.9355, -0.3000],
                            [1., 1., 0.4784, -0.6750],
                            [0., 1., 0., 0.]])
        self.assertTrue(np.allclose(ABCD, ABCDref, atol=1e-4, rtol=1e-4))
Test function for mapCtoD() 5/6
dataset/ETHPy150Open ggventurini/python-deltasigma/deltasigma/tests/test_mapCtoD.py/TestMapCtoD.test_mapCtoD_5