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:
+1
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user