Commit b1ac6591 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 6b18d889
...@@ -247,7 +247,7 @@ def Restructure(ztree, newStructure): ...@@ -247,7 +247,7 @@ def Restructure(ztree, newStructure):
assert _.is_ztree assert _.is_ztree
assert isinstance(newStructure, Tree) assert isinstance(newStructure, Tree)
from_ = TopoEncode(StructureOf(ztree)) from_ = TopoEncode(StructureOf(ztree, onlyKeys=True))
to_ = TopoEncode(newStructure) to_ = TopoEncode(newStructure)
""" """
def _(): def _():
......
...@@ -482,9 +482,9 @@ def test_restructure(): ...@@ -482,9 +482,9 @@ def test_restructure():
for (k,v) in items: for (k,v) in items:
assert ztree[k] == v assert ztree[k] == v
# S returns topo-encoded structure of ztree # S returns topo-encoded keys-only structure of ztree
def S(ztree): def S(ztree):
return xbtree.TopoEncode(xbtree.StructureOf(ztree)) return xbtree.TopoEncode(xbtree.StructureOf(ztree, onlyKeys=True))
# Z0 creates new empty tree # Z0 creates new empty tree
def Z0(): def Z0():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment