From 4fc5a1fec47a2c4d6d52e1423ba7ad0a216816f7 Mon Sep 17 00:00:00 2001 From: pbrod Date: Sun, 22 May 2016 01:01:51 +0200 Subject: [PATCH] pep8 --- wafo/integrate.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/wafo/integrate.py b/wafo/integrate.py index 320ee29..233f3f0 100644 --- a/wafo/integrate.py +++ b/wafo/integrate.py @@ -1070,17 +1070,17 @@ class _Quadgr(object): # Change of variable if np.isfinite(a) & np.isinf(b): # a to inf - [Q, err] = quadgr(lambda t: fun(a + t / (1 - t)) / (1 - t) ** 2, - 0, 1, abseps) + Q, err = quadgr(lambda t: fun(a + t / (1 - t)) / (1 - t) ** 2, + 0, 1, abseps) elif np.isinf(a) & np.isfinite(b): # -inf to b - [Q, err] = quadgr(lambda t: fun(b + t / (1 + t)) / (1 + t) ** 2, - -1, 0, abseps) + Q, err = quadgr(lambda t: fun(b + t / (1 + t)) / (1 + t) ** 2, + -1, 0, abseps) else: # -inf to inf - [Q1, err1] = quadgr(lambda t: fun(t / (1 - t)) / (1 - t) ** 2, - 0, 1, abseps / 2) - [Q2, err2] = quadgr(lambda t: fun(t / (1 + t)) / (1 + t) ** 2, - -1, 0, abseps / 2) + Q1, err1 = quadgr(lambda t: fun(t / (1 - t)) / (1 - t) ** 2, + 0, 1, abseps / 2) + Q2, err2 = quadgr(lambda t: fun(t / (1 + t)) / (1 + t) ** 2, + -1, 0, abseps / 2) Q = Q1 + Q2 err = err1 + err2