From 838675a55b5df316b1581519d529555197bb38e1 Mon Sep 17 00:00:00 2001 From: Per A Brodtkorb Date: Fri, 18 Nov 2016 20:57:01 +0100 Subject: [PATCH] pep8 --- wafo/misc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wafo/misc.py b/wafo/misc.py index a323121..ea86509 100644 --- a/wafo/misc.py +++ b/wafo/misc.py @@ -2465,7 +2465,7 @@ def _discretize_linear(fun, a, b, tol=0.005, n=5): y = fun(x) y00 = interp(x, x0, y0) err = 0.5 * amax(np.abs((y00 - y) / (np.abs(y00 + y) + _TINY))) - num_tries += int(abs (err - err0) <= tol/2) + num_tries += int(abs(err - err0) <= tol/2) return x, y @@ -2503,7 +2503,7 @@ def _discretize_adaptive(fun, a, b, tol=0.005, n=5): x = x[I] erri = hstack((zeros(len(fx)), erri))[I] fx = hstack((fx, fy))[I] - num_tries += int(abs (err - err0) <= tol/2) + num_tries += int(abs(err - err0) <= tol/2) else: break else: