Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
b1ac6591
Commit
b1ac6591
authored
May 25, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
6b18d889
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
wcfs/internal/xbtree.py
wcfs/internal/xbtree.py
+1
-1
wcfs/internal/xbtree_test.py
wcfs/internal/xbtree_test.py
+2
-2
No files found.
wcfs/internal/xbtree.py
View file @
b1ac6591
...
...
@@ -247,7 +247,7 @@ def Restructure(ztree, newStructure):
assert
_
.
is_ztree
assert
isinstance
(
newStructure
,
Tree
)
from_
=
TopoEncode
(
StructureOf
(
ztree
))
from_
=
TopoEncode
(
StructureOf
(
ztree
,
onlyKeys
=
True
))
to_
=
TopoEncode
(
newStructure
)
"""
def _():
...
...
wcfs/internal/xbtree_test.py
View file @
b1ac6591
...
...
@@ -482,9 +482,9 @@ def test_restructure():
for
(
k
,
v
)
in
items
:
assert
ztree
[
k
]
==
v
# S returns topo-encoded structure of ztree
# S returns topo-encoded
keys-only
structure of ztree
def
S
(
ztree
):
return
xbtree
.
TopoEncode
(
xbtree
.
StructureOf
(
ztree
))
return
xbtree
.
TopoEncode
(
xbtree
.
StructureOf
(
ztree
,
onlyKeys
=
True
))
# Z0 creates new empty tree
def
Z0
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment