Changeset 2754
 Timestamp:
 Apr 24, 2006, 2:28:11 PM (18 years ago)
 Location:
 inundation/pyvolution
 Files:

 3 edited
Legend:
 Unmodified
 Added
 Removed

inundation/pyvolution/least_squares.py
r2753 r2754 195 195 196 196 """ 197 print "in fit_to_mesh **"198 197 if use_cache is True: 199 198 from caching.caching import cache … … 221 220 precrop = precrop) 222 221 223 print "id(Interpolation)",id(Interpolation)224 222 vertex_attributes = interp.fit_points(point_attributes, verbose = verbose) 225 223 
inundation/pyvolution/quantity.py
r2683 r2754 619 619 from Numeric import Float 620 620 from utilities.numerical_tools import ensure_numeric 621 from least_squares import fit_to_mesh621 from pyvolution.least_squares import fit_to_mesh 622 622 from coordinate_transforms.geo_reference import Geo_reference 623 623 
inundation/pyvolution/test_quantity.py
r2650 r2754 9 9 from Numeric import allclose, array, ones, Float 10 10 11 from pyvolution.least_squares import fit_to_mesh 12 from domain import Domain 13 from geospatial_data.geospatial_data import Geospatial_data 14 from coordinate_transforms.geo_reference import Geo_reference 11 15 12 16 #Aux for least_squares example … … 280 284 def test_set_values_using_least_squares(self): 281 285 282 from geospatial_data.geospatial_data import Geospatial_data283 286 284 287 quantity = Quantity(self.mesh4) … … 312 315 313 316 #Now try by setting the same values directly 314 from least_squares import fit_to_mesh315 317 vertex_attributes = fit_to_mesh(quantity.domain.coordinates, 316 318 quantity.domain.triangles, … … 330 332 def test_test_set_values_using_least_squares_w_geo(self): 331 333 332 from domain import Domain333 from geospatial_data.geospatial_data import Geospatial_data334 from coordinate_transforms.geo_reference import Geo_reference335 from least_squares import fit_to_mesh336 334 337 335 #Mesh … … 389 387 quantity.vertex_values[:] = 0.0 390 388 391 from geospatial_data.geospatial_data import Geospatial_data392 389 geo = Geospatial_data(data_points, z, data_georef) 393 390 … … 452 449 453 450 #Mesh in zone 56 (absolute coords) 454 from domain import Domain455 from coordinate_transforms.geo_reference import Geo_reference456 451 457 452 x0 = 314036.58727982 … … 528 523 529 524 #Mesh in zone 56 (relative coords) 530 from domain import Domain531 from coordinate_transforms.geo_reference import Geo_reference532 525 533 526 x0 = 314036.58727982
Note: See TracChangeset
for help on using the changeset viewer.