Changeset 2347
- Timestamp:
- Feb 7, 2006, 4:35:24 PM (19 years ago)
- Location:
- inundation/pyvolution
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/pyvolution/least_squares.py
r1979 r2347 201 201 202 202 """ 203 204 203 205 interp = Interpolation(vertex_coordinates, 204 206 triangles, … … 425 427 426 428 429 427 430 #FIXME (Ole): Check that this function is memeory efficient. 428 431 #6 million datapoints and 300000 basis functions … … 488 491 #Remove points falling outside mesh boundary 489 492 #This reduced one example from 1356 seconds to 825 seconds 493 494 490 495 if precrop is True: 491 496 from Numeric import take -
inundation/pyvolution/quantity.py
r2309 r2347 173 173 location = 'vertices', 174 174 indices = None, 175 verbose = None,175 verbose = False, 176 176 use_cache = False): 177 177 … … 591 591 592 592 593 593 594 self.set_values_from_points(points, values, alpha, 594 595 location, indices, … … 607 608 """ 608 609 610 609 611 from Numeric import Float 610 612 from util import ensure_numeric … … 642 644 'mesh_origin': mesh_georef.get_origin(), 643 645 'alpha': alpha, 646 'precrop': True, 644 647 'verbose': verbose} 645 648 -
inundation/pyvolution/test_quantity.py
r2323 r2347 398 398 399 399 400 def test_set_values_from_file (self):400 def test_set_values_from_file1(self): 401 401 quantity = Quantity(self.mesh4) 402 402 … … 1454 1454 #------------------------------------------------------------- 1455 1455 if __name__ == "__main__": 1456 suite = unittest.makeSuite(Test_Quantity, 'test') #_test_set_values_using_least_squares_w_geo')1456 suite = unittest.makeSuite(Test_Quantity, 'test') 1457 1457 #print "restricted test" 1458 1458 #suite = unittest.makeSuite(Test_Quantity,'test_set_values_func')
Note: See TracChangeset
for help on using the changeset viewer.