Changeset 5004


Ignore:
Timestamp:
Feb 7, 2008, 10:56:03 AM (16 years ago)
Author:
nick
Message:

add some more progress statements "if verbose: print...."

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/geospatial_data/geospatial_data.py

    r5003 r5004  
    15521552        #returns the predicted elevation of the points that were "split" out
    15531553        #of the original data set for one particular alpha
     1554        if verbose: print 'get predicted elevation for location to be compared'
    15541555        elevation_predicted=domain.quantities[attribute_smoothed].\
    15551556                            get_values(interpolation_points=points_geo)
     
    15641565        #print 'memory usage during compare',mem_usage()
    15651566       
    1566 
    1567         if verbose: print'cov',normal_cov[i][0],'= ',normal_cov[i][1]
    1568 
    1569 
     1567        if verbose: print'covariance for alpha ',normal_cov[i][0],'= ',normal_cov[i][1]
    15701568
    15711569#    if verbose: print 'Determine difference between predicted results and actual data'
     
    16021600        remove(mesh_file)
    16031601   
     1602    if verbose:
     1603        print 'Final results:'
     1604        for i in len(alphas):
     1605            print'covariance for alpha %s = %s ' %(normal_cov[i][0],normal_cov[i][1])
     1606        print '\n Optimal alpha is: %s ' % normal_cov_new[(argmin(normal_cov_new,axis=0))[1],0]
     1607
    16041608    return min(normal_cov_new[:,1]) , normal_cov_new[(argmin(normal_cov_new,axis=0))[1],0]
    16051609
Note: See TracChangeset for help on using the changeset viewer.