From a7cb4adc2d0f3ab77d3a50f5819945d9c9815550 Mon Sep 17 00:00:00 2001 From: pbrod Date: Sat, 11 Jun 2016 00:15:22 +0200 Subject: [PATCH] Fixed failing doctest --- wafo/spectrum/core.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wafo/spectrum/core.py b/wafo/spectrum/core.py index de82919..faa10d2 100644 --- a/wafo/spectrum/core.py +++ b/wafo/spectrum/core.py @@ -1427,9 +1427,8 @@ class SpecData1D(PlotData): >>> Sj = sm.Jonswap() >>> S = Sj.tospecdata() >>> f = S.to_t_pdf(pdef='Tc', paramt=(0, 10, 51), speed=7) - >>> Hm0 = 7 - >>> Tp = 11 - >>> S = sm.Jonswap(4*pi/Tp,[Hm0 Tp]) + >>> S = sm.Jonswap(4*pi/Tp, Hm0=7, Tp=11) + Sk = spec2spec(S,'k1d') L0 = spec2mom(S,1) paramu = [sqrt(L0)*[-4 4] 41]