From 08c5b78eb4a04e1b7d0a7dcb8ebadd7d14b86185 Mon Sep 17 00:00:00 2001 From: Per A Brodtkorb Date: Tue, 22 Nov 2016 03:28:23 +0100 Subject: [PATCH] Small bug --- wafo/polynomial.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wafo/polynomial.py b/wafo/polynomial.py index a2979e1..e35f902 100644 --- a/wafo/polynomial.py +++ b/wafo/polynomial.py @@ -1899,7 +1899,7 @@ def padefitlsq(fun, m, k, a=-1, b=1, trace=False, x=None, end_points=True): if trace: plt.plot(x, fs, '+') - def _cond_plot2(x, fs, x, ys, ix, devmax): + def _cond_plot2(x, fs, ys, ix, devmax): if trace: print('Iteration=%d, max error=%g' % (ix, devmax)) plt.plot(x, fs, x, ee + fs) @@ -1952,7 +1952,7 @@ def padefitlsq(fun, m, k, a=-1, b=1, trace=False, x=None, end_points=True): smallest_devmax = devmax c1 = cof[m::-1] c2 = cof[ncof:m:-1].tolist() + [1, ] - _cond_plot2(x, fs, x, ee + fs, ix, devmax) + _cond_plot2(x, fs, ee + fs, ix, devmax) return poly1d(c1), poly1d(c2)