From 854545a92b6123383fdde3e9b7f27476e882aaa0 Mon Sep 17 00:00:00 2001 From: Stephen Mardson McQuay Date: Thu, 24 Mar 2011 15:51:53 -0600 Subject: [PATCH] modified to work with latest imports --- bin/driver.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bin/driver.py b/bin/driver.py index f2174b3..de0b0af 100755 --- a/bin/driver.py +++ b/bin/driver.py @@ -5,7 +5,7 @@ from optparse import OptionParser import numpy as np -from interp.tools import rms, exact_func +from interp.tools import rms, baker_exact_2D as exact_func from interp.grid.DD import random_grid, rect_grid @@ -35,25 +35,25 @@ if __name__ == '__main__': help = "qhull output file") parser.add_option("-e", - "--extra-points", + "--extra-verts", dest="extra", type='int', default = 3, - help = "how many extra points (%default)") + help = "how many extra verts (%default)") parser.add_option("-s", "--source-total", dest="source_total", type='int', default = 100, - help = "total number of source points for random, resolution for structured (%default)") + help = "total number of source verts for random, resolution for structured (%default)") parser.add_option("-d", "--destination-total", dest="destination_total", type='int', default = 100, - help = "total number of destination points, resolution for structured (%default)") + help = "total number of destination verts, resolution for structured (%default)") parser.add_option("-r", "--structured", @@ -84,7 +84,7 @@ if __name__ == '__main__': answer = mesh_source.run_baker(X) - if answer['a'] == None: + if answer['abc'] == None: errors.append(0) continue @@ -103,4 +103,4 @@ if __name__ == '__main__': errors.append(cur_error) print rms(errors) - print >>sys.stderr, "%s of %s won" % (success, len(mesh_dest.points)) + print >>sys.stderr, "%s of %s won" % (success, len(mesh_dest.verts))