Commit 340e372b authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 6f1bfd43
......@@ -311,7 +311,9 @@ def Restructure(ztree, newStructure):
if len(RZv) == len(RNv):
# assert the result is 1-1 mapping
for j in range(len(RNv)):
assert RNv[j].node.Z is RZv[j].node
if RNv[j].node.Z is not RZv[j].node:
panic("BUG: Restructure %s -> %s: assign: not 1-1 mapping:\n RZv: %s\nRNv: %s" %
(TopoEncode(StructureOf(ztree)), TopoEncode(newStructure), RZv, RNv))
# XXX assert assignments are in key↑ order ?
......
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