finally added proper (in my opinon) exception handling to the grid's run_baker method. it should properly autocorrect, and switch the extra point lookup scheme to connectivity-based if solving the system of equations yields a singular solution

This commit is contained in:
Stephen Mardson McQuay
2010-03-05 08:58:07 -07:00
parent a25e6d03d1
commit 9a1b8d14b2
4 changed files with 50 additions and 33 deletions
+1 -2
View File
@@ -30,7 +30,6 @@ class TestSequenceFunctions(unittest.TestCase):
import scipy
import grid
import baker
import delaunay
def testGetPhis(self):
@@ -62,7 +61,7 @@ class TestSequenceFunctions(unittest.TestCase):
r = [[0, 0], [1, 0], [1, 1]]
q = [1, 0, 0]
result = baker.qlinear(X, r, q)
phi, result = baker.qlinear(X, grid.grid(r,q))
right_answer = 0.5