コード例 #1
0
 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))
コード例 #2
0
 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))
コード例 #3
0
 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))
コード例 #4
0
 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))
コード例 #5
0
 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))
コード例 #6
0
 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))
コード例 #7
0
 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))
コード例 #8
0
 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))
コード例 #9
0
 def test_realizeNTF_ct_9(self):
     """Test function for realizeNTF_ct() 9/15"""
     ABCDc, tdac2 = ds.realizeNTF_ct(self.ntf3, 'FF', self.tdac3)
コード例 #10
0
 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)
コード例 #11
0
 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.])
コード例 #12
0
 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])
コード例 #13
0
 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')
コード例 #14
0
 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.])
コード例 #15
0
 def test_realizeNTF_ct_15(self):
     """Test function for realizeNTF_ct() 15/15"""
     ABCDc, tdac2 = ds.realizeNTF_ct(self.ntf3, 'FB', method='DUMMY')
コード例 #16
0
 def test_realizeNTF_ct_9(self):
     """Test function for realizeNTF_ct() 9/15"""
     ABCDc, tdac2 = ds.realizeNTF_ct(self.ntf3, 'FF', self.tdac3)
コード例 #17
0
 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)
コード例 #18
0
 def test_realizeNTF_ct_15(self):
     """Test function for realizeNTF_ct() 15/15"""
     ABCDc, tdac2 = ds.realizeNTF_ct(self.ntf3, 'FB', method='DUMMY')
コード例 #19
0
 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.])
コード例 #20
0
 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)
コード例 #21
0
 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)
コード例 #22
0
 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])
コード例 #23
0
 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])