Changeset 1787
- Timestamp:
- Aug 31, 2005, 3:15:42 PM (20 years ago)
- Location:
- inundation/pyvolution
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/pyvolution/data_manager.py
r1753 r1787 1173 1173 global_index = 0 1174 1174 for i in range(nrows): 1175 if verbose: print 'Processing row %d of %d' %(i, nrows) 1175 if verbose and i%((nrows+10)/10)==0: 1176 print 'Processing row %d of %d' %(i, nrows) 1177 1176 1178 lower_index = global_index 1177 1179 tpoints = zeros((ncols_in_bounding_box, 2), Float) … … 1567 1569 1568 1570 #Store data 1571 n = len(lines[6:]) 1569 1572 for i, line in enumerate(lines[6:]): 1570 1573 fields = line.split() 1571 if verbose: print 'Processing row %d of %d' %(i, nrows) 1574 if verbose and i%((n+10)/10)==0: 1575 print 'Processing row %d of %d' %(i, nrows) 1572 1576 1573 1577 elevation[i, :] = array([float(x) for x in fields]) -
inundation/pyvolution/least_squares.py
r1741 r1787 263 263 triangles, 264 264 point_coordinates = None, 265 alpha = DEFAULT_ALPHA,265 alpha = None, 266 266 verbose = False, 267 267 expand_search = True, … … 327 327 328 328 #Smoothing parameter 329 self.alpha = alpha 329 if alpha is None: 330 self.alpha = DEFAULT_ALPHA 331 else: 332 self.alpha = alpha 330 333 331 334 #Build coefficient matrices
Note: See TracChangeset
for help on using the changeset viewer.