updated for directory structure changes
This commit is contained in:
parent
22a8855a99
commit
656394e747
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user