Changeset 3941


Ignore:
Timestamp:
Nov 8, 2006, 4:21:45 PM (16 years ago)
Author:
duncan
Message:

change Interpolation_function (in interpolate.py) so it accepts geospatial data objects. See ticket#108

Location:
anuga_core/source/anuga/fit_interpolate
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/fit_interpolate/interpolate.py

    r3900 r3941  
    459459            self.spatial = False
    460460        else:   
    461             vertex_coordinates = ensure_numeric(vertex_coordinates)
     461            vertex_coordinates = ensure_absolute(vertex_coordinates)
    462462
    463463            assert triangles is not None, 'Triangles array must be specified'
  • anuga_core/source/anuga/fit_interpolate/test_interpolate.py

    r3900 r3941  
    10121012        #Three timesteps
    10131013        time = [1.0, 5.0, 6.0]
    1014        
    1015        
     1014               
    10161015        #Setup mesh used to represent fitted function
    10171016        a = [0.0, 0.0]
     
    10541053            for id in range(len(interpolation_points)):
    10551054                assert allclose(I(t, id), answer[id])
    1056 
    10571055            t += 0.1   
    1058 
    10591056
    10601057        try:   
     
    10641061        else:
    10651062            raise 'Should raise exception'
     1063
    10661064           
    1067 
    1068 
    10691065    def test_interpolation_interface(self):
    10701066        # Test spatio-temporal interpolation
Note: See TracChangeset for help on using the changeset viewer.