def test_realizeNTF_ct_5(self): """Test function for realizeNTF_ct() 5/15""" ABCDc, tdac2 = ds.realizeNTF_ct(self.ntf, 'FF', tdac=[.5, 1.5]) self.assertTrue(np.allclose(ABCDc, self.ABCDc_ref5, atol=1e-8, rtol=1e-4)) self.assertTrue(np.allclose(tdac2, self.tdac2_ref5, atol=1e-8, rtol=1e-4))
def test_realizeNTF_ct_3(self): """Test function for realizeNTF_ct() 3/15""" ABCDc, tdac2 = ds.realizeNTF_ct(self.ntf3, 'FB', self.tdac3) self.assertTrue( np.allclose(ABCDc, self.ABCDc_ref3, atol=1e-8, rtol=1e-4)) self.assertTrue( np.allclose(tdac2, self.tdac2_ref3, atol=1e-8, rtol=1e-4))
def test_realizeNTF_ct_2(self): """Test function for realizeNTF_ct() 2/15""" ABCDc, tdac2 = ds.realizeNTF_ct(self.ntf, 'FB', tdac=[0, 1]) self.assertTrue( np.allclose(ABCDc, self.ABCDc_ref2, atol=1e-8, rtol=1e-5)) self.assertTrue( np.allclose(tdac2, self.tdac2_ref2, atol=1e-8, rtol=1e-5))
def test_realizeNTF_ct_5(self): """Test function for realizeNTF_ct() 5/15""" ABCDc, tdac2 = ds.realizeNTF_ct(self.ntf, 'FF', tdac=[.5, 1.5]) self.assertTrue( np.allclose(ABCDc, self.ABCDc_ref5, atol=1e-8, rtol=1e-4)) self.assertTrue( np.allclose(tdac2, self.tdac2_ref5, atol=1e-8, rtol=1e-4))
def test_realizeNTF_ct_3(self): """Test function for realizeNTF_ct() 3/15""" ABCDc, tdac2 = ds.realizeNTF_ct(self.ntf3, 'FB', self.tdac3) self.assertTrue(np.allclose(ABCDc, self.ABCDc_ref3, atol=1e-8, rtol=1e-4)) self.assertTrue(np.allclose(tdac2, self.tdac2_ref3, atol=1e-8, rtol=1e-4))
def test_realizeNTF_ct_13(self): """Test function for realizeNTF_ct() 13/15""" ABCDc, tdac2 = ds.realizeNTF_ct(self.ntf, 'FF', method='NTF') self.assertTrue( np.allclose(ABCDc, self.ABCDc_ref4, atol=1e-8, rtol=1e-4)) self.assertTrue( np.allclose(tdac2, self.tdac2_ref4, atol=1e-8, rtol=1e-4))
def test_realizeNTF_ct_2(self): """Test function for realizeNTF_ct() 2/15""" ABCDc, tdac2 = ds.realizeNTF_ct(self.ntf, 'FB', tdac=[0, 1]) self.assertTrue(np.allclose(ABCDc, self.ABCDc_ref2, atol=1e-8, rtol=1e-5)) self.assertTrue(np.allclose(tdac2, self.tdac2_ref2, atol=1e-8, rtol=1e-5))
def test_realizeNTF_ct_13(self): """Test function for realizeNTF_ct() 13/15""" ABCDc, tdac2 = ds.realizeNTF_ct(self.ntf, 'FF', method='NTF') self.assertTrue(np.allclose(ABCDc, self.ABCDc_ref4, atol=1e-8, rtol=1e-4)) self.assertTrue(np.allclose(tdac2, self.tdac2_ref4, atol=1e-8, rtol=1e-4))
def test_realizeNTF_ct_9(self): """Test function for realizeNTF_ct() 9/15""" ABCDc, tdac2 = ds.realizeNTF_ct(self.ntf3, 'FF', self.tdac3)
def test_realizeNTF_ct_8(self): """Test function for realizeNTF_ct() 8/15""" tdac = [[-1, -1], [.5, 1.5], [.5, .8], [0.1, 2.]] ABCDc, tdac2 = ds.realizeNTF_ct(self.ntf3, 'FB', tdac)
def test_realizeNTF_ct_7(self): """Test function for realizeNTF_ct() 7/15""" ABCDc, tdac2 = ds.realizeNTF_ct(self.ntf, 'FF', tdac=[.5, 1.5, 3.])
def test_realizeNTF_ct_6(self): """Test function for realizeNTF_ct() 6/15""" with self.assertRaises(ValueError): ABCDc, tdac2 = ds.realizeNTF_ct(self.ntf, 'DUMMY', tdac=[.5, 1.5])
def test_realizeNTF_ct_15(self): """Test function for realizeNTF_ct() 15/15""" with self.assertRaises(ValueError): ABCDc, tdac2 = ds.realizeNTF_ct(self.ntf3, 'FB', method='DUMMY')
def test_realizeNTF_ct_15(self): """Test function for realizeNTF_ct() 15/15""" ABCDc, tdac2 = ds.realizeNTF_ct(self.ntf3, 'FB', method='DUMMY')
def test_realizeNTF_ct_8(self): """Test function for realizeNTF_ct() 8/15""" tdac= [[-1, -1], [.5, 1.5], [.5, .8], [0.1, 2.]] ABCDc, tdac2 = ds.realizeNTF_ct(self.ntf3, 'FB', tdac)
def test_realizeNTF_ct_7(self): """Test function for realizeNTF_ct() 7/15""" with self.assertRaises(ValueError): ABCDc, tdac2 = ds.realizeNTF_ct(self.ntf, 'FF', tdac=[.5, 1.5, 3.])
def test_realizeNTF_ct_8(self): """Test function for realizeNTF_ct() 8/15""" tdac = [[-1, -1], [.5, 1.5], [.5, .8], [0.1, 2.]] with self.assertRaises(ValueError): ABCDc, tdac2 = ds.realizeNTF_ct(self.ntf3, 'FB', tdac)
def test_realizeNTF_ct_9(self): """Test function for realizeNTF_ct() 9/15""" with self.assertRaises(ValueError): ABCDc, tdac2 = ds.realizeNTF_ct(self.ntf3, 'FF', self.tdac3)
def test_realizeNTF_ct_6(self): """Test function for realizeNTF_ct() 6/15""" ABCDc, tdac2 = ds.realizeNTF_ct(self.ntf, 'DUMMY', tdac=[.5, 1.5])