updated for directory structure changes

This commit is contained in:
Stephen Mardson McQuay 2010-10-29 21:34:15 -06:00
parent 22a8855a99
commit 656394e747

View File

@ -1,8 +1,8 @@
#!/usr/bin/env python
import unittest
import baker
import grid
from interp.baker import get_phis_3D, qlinear_3D
from interp.grid import grid
import numpy as np
import scipy.spatial
@ -20,7 +20,7 @@ class TestSequenceFunctions(unittest.TestCase):
def testGetPhis3D(self):
result = baker.get_phis_3D(self.X, self.r)
result = get_phis_3D(self.X, self.r)
right_answer = [0.25, 0.25, 0.25, 0.25]
for a,b in zip(result, right_answer):
@ -28,7 +28,7 @@ class TestSequenceFunctions(unittest.TestCase):
def testQlinear3D(self):
phi, result = baker.qlinear_3D(self.X, grid.grid(self.r, self.q))
phi, result = qlinear_3D(self.X, grid(self.r, self.q))
result = result
right_answer = 1.0
self.assertAlmostEqual(result, right_answer)