1
0
Fork 0

Minor tweaks for better debugging/monitoring

This commit is contained in:
curt 2003-08-16 15:39:59 +00:00
parent ad75df026d
commit 9ab16521f4

View file

@ -45,14 +45,15 @@ def run_terra(thresh, minnodes, count, factor, objName, pgmName):
r,w,e = os.popen3(command) r,w,e = os.popen3(command)
for line in e.readlines(): for line in e.readlines():
line = line.lstrip() line = line.lstrip()
print line
if line.startswith("points="): if line.startswith("points="):
line = line.split()[0] line = line.split()[0]
npts = string.atof(line[len("points="):]) npts = string.atof(line[len("points="):])
print "npts = %d"%(npts) print " npts = %d"%(npts)
if line.startswith("error="): if line.startswith("error="):
line = line.split()[0] line = line.split()[0]
error = string.atof(line[len("error="):]) error = string.atof(line[len("error="):])
print "error = %d"%(error) print " error = %.2f"%(error)
return npts return npts
@ -196,7 +197,7 @@ def main():
sys.exit(1) sys.exit(1)
minnodes = 50 minnodes = 50
maxnodes = 600 maxnodes = 600
maxerror = 5.0 maxerror = 50.0
factor = 1.0/30.0 factor = 1.0/30.0
infile = None infile = None
quiet = 0 quiet = 0