Fixeing doctests

master
pbrod 9 years ago
parent e09659cdcb
commit 57d6f2ca8c

@ -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

@ -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

Loading…
Cancel
Save