From 02b311f72d332069f876ffcb0f7acff388e08d59 Mon Sep 17 00:00:00 2001 From: Stephen Mardson McQuay Date: Sat, 23 Oct 2010 17:05:33 -0600 Subject: [PATCH] removed the smberror, and corrected a typo in the exact function --- interp/tools.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/interp/tools.py b/interp/tools.py index d3a3efd..d167bd5 100644 --- a/interp/tools.py +++ b/interp/tools.py @@ -32,15 +32,6 @@ def get_logger(filename, level = logging.DEBUG, logger_name = 'pymoab', size = 2 log = get_logger(filename = '/tmp/interp.log') -class smberror(Exception): - """ - this is a silly little exception subclass - """ - def __init__(self, val): - self.value = val - def __str__(self): - return repr(self.value) - def rms(errors): """ root mean square calculation @@ -56,7 +47,7 @@ def exact_func(X): the exact function used from baker's article (for testing) """ x = X[0] - y = X[0] + y = X[1] return np.power((np.sin(x * np.pi) * np.cos(y * np.pi)), 2) def exact_func_3D(X):