Ignore:
Timestamp:
May 19, 2006, 4:12:41 PM (18 years ago)
Author:
duncan
Message:

changing pyvolution code so fit_interpolate/fit.py is used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/test_quantity.py

    r2754 r2924  
    99from Numeric import allclose, array, ones, Float
    1010
    11 from pyvolution.least_squares import fit_to_mesh               
     11from fit_interpolate.fit import fit_to_mesh
     12#from pyvolution.least_squares import fit_to_mesh               
    1213from domain import Domain
    1314from geospatial_data.geospatial_data import Geospatial_data
    1415from coordinate_transforms.geo_reference import Geo_reference
    1516
    16 #Aux for least_squares example
     17#Aux for fit_interpolate.fit example
    1718def linear_function(point):
    1819    point = array(point)
     
    282283
    283284
    284     def test_set_values_using_least_squares(self):
     285    def test_set_values_using_fit(self):
    285286
    286287
     
    304305        z = linear_function(data_points)
    305306
    306         #Use built-in least squares fit
     307        #Use built-in fit_interpolate.fit
    307308        quantity.set_values( Geospatial_data(data_points, z), alpha = 0 )
    308309        #quantity.set_values(points = data_points, values = z, alpha = 0)
     
    330331
    331332
    332     def test_test_set_values_using_least_squares_w_geo(self):
     333    def test_test_set_values_using_fit_w_geo(self):
    333334
    334335
Note: See TracChangeset for help on using the changeset viewer.