Changeset 2924 for inundation/pyvolution/test_quantity.py
- Timestamp:
- May 19, 2006, 4:12:41 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/pyvolution/test_quantity.py
r2754 r2924 9 9 from Numeric import allclose, array, ones, Float 10 10 11 from pyvolution.least_squares import fit_to_mesh 11 from fit_interpolate.fit import fit_to_mesh 12 #from pyvolution.least_squares import fit_to_mesh 12 13 from domain import Domain 13 14 from geospatial_data.geospatial_data import Geospatial_data 14 15 from coordinate_transforms.geo_reference import Geo_reference 15 16 16 #Aux for least_squaresexample17 #Aux for fit_interpolate.fit example 17 18 def linear_function(point): 18 19 point = array(point) … … 282 283 283 284 284 def test_set_values_using_ least_squares(self):285 def test_set_values_using_fit(self): 285 286 286 287 … … 304 305 z = linear_function(data_points) 305 306 306 #Use built-in least squaresfit307 #Use built-in fit_interpolate.fit 307 308 quantity.set_values( Geospatial_data(data_points, z), alpha = 0 ) 308 309 #quantity.set_values(points = data_points, values = z, alpha = 0) … … 330 331 331 332 332 def test_test_set_values_using_ least_squares_w_geo(self):333 def test_test_set_values_using_fit_w_geo(self): 333 334 334 335
Note: See TracChangeset
for help on using the changeset viewer.