From df22be4e170b35b7945df4fc667b9c09b53ce303 Mon Sep 17 00:00:00 2001 From: Per A Brodtkorb Date: Sun, 12 Feb 2017 15:42:51 +0100 Subject: [PATCH] Ongoing work on doctests --- wafo/sg_filter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wafo/sg_filter.py b/wafo/sg_filter.py index 0329607..b2278c1 100644 --- a/wafo/sg_filter.py +++ b/wafo/sg_filter.py @@ -650,8 +650,8 @@ def smoothn(data, s=None, weight=None, robust=False, z0=None, tolz=1e-3, >>> import wafo.demos as wd >>> n = 256 >>> x0, y0, z0 = wd.peaks(n) - >>> z = z0 + rand(size(y0))*2 + z = z0 + rand(size(y0))*2 I = randperm(n**2) z[I(1:n^2*0.5)] = np.NaN; # lose 1/2 of data z[40:90, 140:190] = np.NaN; # create a hole