Ignore:
Timestamp:
Jul 22, 2009, 9:22:11 AM (16 years ago)
Author:
rwilson
Message:

Replaced 'print' statements with log.critical() calls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/load_mesh/loadASCII.py

    r7276 r7317  
    6767from anuga.config import netcdf_float, netcdf_char, netcdf_int
    6868from anuga.utilities.system_tools import *
     69import anuga.utilities.log as log
    6970
    7071from Scientific.IO.NetCDF import NetCDFFile
     
    10121013
    10131014    while point_atts['pointlist'].shape[0] > max_points:
    1014         if verbose: print "point_atts['pointlist'].shape[0]"
     1015        if verbose: log.critical("point_atts['pointlist'].shape[0]")
    10151016        point_atts = half_pts(point_atts)
    10161017
     
    10301031    outfiles = []
    10311032
    1032     if verbose: print "# of points", point_atts['pointlist'].shape[0]
     1033    if verbose: log.critical("# of points", point_atts['pointlist'].shape[0])
    10331034
    10341035    while point_atts['pointlist'].shape[0] > max_points:
    10351036        point_atts = half_pts(point_atts)
    10361037
    1037         if verbose: print "# of points", point_atts['pointlist'].shape[0]
     1038        if verbose: log.critical("# of points = %s"
     1039                                 % str(point_atts['pointlist'].shape[0]))
    10381040
    10391041        outfile = root + delimiter + str(point_atts['pointlist'].shape[0]) + ext
Note: See TracChangeset for help on using the changeset viewer.