Ignore:
Timestamp:
Oct 21, 2004, 5:54:28 PM (20 years ago)
Author:
duncan
Message:

reducing the # of errors when testing.
Adding fit_points function that doesn't rely on broadcasting, since cg_solve doesn't broadcast.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/test_least_squares.py

    r430 r436  
    162162        data_coords = [d1, d2, d3]
    163163       
    164         interp = Interpolation(points, triangles, data_coords, alpha=5.0e-7)
     164        interp = Interpolation(points, triangles, data_coords, alpha=5.0e-20)
    165165        z = [z1, z2, z3]
    166166        f = interp.fit(z)
     
    241241        interp = Interpolation(points, triangles, data_coords, alpha=0.0)
    242242        z = [z1, z2, z3]
    243         f =  interp.fit(z)
     243        f =  interp.fit_points(z)
    244244        answer = [[0,0], [5., 10.], [5., 10.]]
    245245        assert allclose(f, answer)
Note: See TracChangeset for help on using the changeset viewer.