From 57d6f2ca8c9fc272241728899a538342eb37576f Mon Sep 17 00:00:00 2001 From: pbrod Date: Thu, 2 Jun 2016 00:53:22 +0200 Subject: [PATCH] Fixeing doctests --- wafo/gaussian.py | 2 ++ wafo/misc.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wafo/gaussian.py b/wafo/gaussian.py index 5c0d91a..3c72fdc 100644 --- a/wafo/gaussian.py +++ b/wafo/gaussian.py @@ -110,6 +110,8 @@ class Rind(object): >>> Bup[0,ind] = np.minimum(Bup[0,ind] , infinity*dev[indI[ind+1]]) >>> Blo[0,ind] = np.maximum(Blo[0,ind] ,-infinity*dev[indI[ind+1]]) >>> val, err, terr = rind(Sc,m,Blo,Bup,indI, xc, nt=0) + >>> val + >>> np.allclose(val, 0.05494076, rtol=1e-2) True >>> err[0] < 1e-3, terr[0] < 1e-7 diff --git a/wafo/misc.py b/wafo/misc.py index c937c48..5dd2aba 100644 --- a/wafo/misc.py +++ b/wafo/misc.py @@ -592,7 +592,7 @@ class Bunch(object): >>> d = Bunch(test1=1,test2=3) >>> d.test1 1 - >>> d.keys() == ['test1', 'test2'] + >>> sorted(d.keys()) == ['test1', 'test2'] True >>> d.update(test1=2) >>> d.test1