Changeset 1787


Ignore:
Timestamp:
Aug 31, 2005, 3:15:42 PM (19 years ago)
Author:
ole
Message:

Better output

Location:
inundation/pyvolution
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/data_manager.py

    r1753 r1787  
    11731173    global_index = 0
    11741174    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       
    11761178        lower_index = global_index
    11771179        tpoints = zeros((ncols_in_bounding_box, 2), Float)
     
    15671569
    15681570    #Store data
     1571    n = len(lines[6:])
    15691572    for i, line in enumerate(lines[6:]):
    15701573        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)           
    15721576
    15731577        elevation[i, :] = array([float(x) for x in fields])
  • inundation/pyvolution/least_squares.py

    r1741 r1787  
    263263                 triangles,
    264264                 point_coordinates = None,
    265                  alpha = DEFAULT_ALPHA,
     265                 alpha = None,
    266266                 verbose = False,
    267267                 expand_search = True,
     
    327327
    328328        #Smoothing parameter
    329         self.alpha = alpha
     329        if alpha is None:
     330            self.alpha = DEFAULT_ALPHA
     331        else:   
     332            self.alpha = alpha
    330333
    331334        #Build coefficient matrices
Note: See TracChangeset for help on using the changeset viewer.