From 0a96a74e73a7ce3204ff4212bb578cdd1e887f43 Mon Sep 17 00:00:00 2001 From: Per A Brodtkorb Date: Wed, 29 Jun 2016 00:58:25 +0200 Subject: [PATCH] Fixed a bug in doctest --- wafo/objects.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wafo/objects.py b/wafo/objects.py index da91e37..094ea0e 100644 --- a/wafo/objects.py +++ b/wafo/objects.py @@ -1792,8 +1792,8 @@ class TimeSeries(PlotData): >>> import pylab as plb >>> x = wd.sea() >>> ts = wo.mat2timeseries(x[0:400,:]) - >>> T, ix = ts.wave_periods(vh=0.0,pdef='c2c') - >>> np.allclose(T[:3,0], [-0.27, -0.08, 0.32]) + >>> T, ix = ts.wave_periods(vh=0.0, pdef='c2c') + >>> np.allclose(T[:3], [-0.27, -0.08, 0.32]) True h = plb.hist(T)