Example #1
0
 def test_evalF0_3(self):
     """Test function for evalF0() 3/3"""
     r = evalF0(0.5, self.z, 0.5)
     ref = np.array(
         (1.5, 1.309016994374948, 0.809016994374947, 0.190983005625053,
          -0.309016994374947, -0.5, -0.309016994374947, 0.190983005625052,
          0.809016994374947, 1.309016994374947, 1.5))
     self.assertTrue(np.allclose(r, ref))
 def test_evalF0_3(self):
     """Test function for evalF0() 3/3"""
     r = evalF0(0.5, self.z, 0.5)
     ref = np.array((1.5, 1.309016994374948, 0.809016994374947,
                     0.190983005625053, -0.309016994374947, -0.5,
                     -0.309016994374947,  0.190983005625052,
                     0.809016994374947, 1.309016994374947, 1.5))
     self.assertTrue(np.allclose(r, ref))
Example #3
0
 def test_evalF0_2(self):
     """Test function for evalF0() 2/3"""
     r = evalF0(1, self.z, 0.5)
     ref = np.array(
         (2.5, 2.118033988749895, 1.118033988749895, -0.118033988749895,
          -1.118033988749895, -1.5, -1.118033988749895, -0.118033988749895,
          1.118033988749895, 2.118033988749895, 2.5))
     self.assertTrue(np.allclose(r, ref))
 def test_evalF0_2(self):
     """Test function for evalF0() 2/3"""
     r = evalF0(1, self.z, 0.5)
     ref = np.array((2.5, 2.118033988749895, 1.118033988749895,
                     -0.118033988749895, -1.118033988749895, -1.5,
                     -1.118033988749895, -0.118033988749895,
                     1.118033988749895, 2.118033988749895, 2.5))
     self.assertTrue(np.allclose(r, ref))