Skip to content
Snippets Groups Projects
Commit 8e7cc6b3 authored by Kipp Cannon's avatar Kipp Cannon
Browse files

horizonhistory.py: documentation fixes

- gets doctest working
parent 10cc6c48
No related branches found
No related tags found
No related merge requests found
......@@ -110,7 +110,8 @@ class NearestLeafTree(object):
True
>>> 103 in x
False
>>> x.to_xml(u"H1").write()
>>> import sys
>>> x.to_xml(u"H1").write(sys.stdout) # doctest: +NORMALIZE_WHITESPACE
<Array Type="real_8" Name="H1:nearestleaftree:array">
<Dim>2</Dim>
<Dim>2</Dim>
......@@ -201,8 +202,9 @@ class NearestLeafTree(object):
>>> x = NearestLeafTree([(100., 0.), (150., 1.), (200., 0.)])
>>> del x[150.]
>>> x
NearestLeafTree([(100., 0.), (200., 0.)])
NearestLeafTree([(100, 0), (200, 0)])
>>> del x[:]
>>> x
NearestLeafTree([])
"""
if isinstance(x, slice):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment