Ongoing work on doctests

master
Per A Brodtkorb 8 years ago
parent a55ce2f0b7
commit df22be4e17

@ -650,8 +650,8 @@ def smoothn(data, s=None, weight=None, robust=False, z0=None, tolz=1e-3,
>>> import wafo.demos as wd >>> import wafo.demos as wd
>>> n = 256 >>> n = 256
>>> x0, y0, z0 = wd.peaks(n) >>> x0, y0, z0 = wd.peaks(n)
>>> z = z0 + rand(size(y0))*2
z = z0 + rand(size(y0))*2
I = randperm(n**2) I = randperm(n**2)
z[I(1:n^2*0.5)] = np.NaN; # lose 1/2 of data z[I(1:n^2*0.5)] = np.NaN; # lose 1/2 of data
z[40:90, 140:190] = np.NaN; # create a hole z[40:90, 140:190] = np.NaN; # create a hole

Loading…
Cancel
Save