Skip to content

Commit 6f8a457

Browse files
committed
Edit setup link and remove printBin as main
1 parent 60e6e40 commit 6f8a457

2 files changed

Lines changed: 1 addition & 25 deletions

File tree

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
long_description_content_type="text/markdown",
1919
url="https://github.com/Vic-Nas/PythonSolutions", # Your repo
2020
project_urls={
21-
"Documentation": "https://github.com/Vic-Nas/PythonSolutions/tree/main/vicutils",
21+
"Documentation": "https://vic-nas.github.io/PythonSolutions/vicutils/printBin.html",
2222
"Source": "https://github.com/Vic-Nas/PythonSolutions",
2323
},
2424
classifiers=[

vicutils/printBin.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from itertools import product
2-
from pprint import pprint
32

43
# Default configuration constants
54
DEFAULT_UNIT_SIZE = 3
@@ -225,26 +224,3 @@ def nodeToString(node: BinaryNode, depth=-1, fillChar=None, unitSize=None, remov
225224
"""
226225
mat = nodeToMat(node, depth=depth, fillChar=fillChar, unitSize=unitSize, removeEmpty=removeEmpty)
227226
return "\n".join("".join(row) for row in mat)
228-
229-
230-
# Example usage
231-
if __name__ == "__main__":
232-
myNode = BinaryNode(1)
233-
# myNode.left = Node(2)
234-
myNode.right = BinaryNode(3)
235-
# myNode.left.left = Node(4)
236-
# myNode.left.right = Node(5)
237-
myNode.right.left = BinaryNode(6)
238-
myNode.right.right = BinaryNode(7)
239-
240-
mat = nodeToMat(myNode)
241-
pprint(mat)
242-
for row in mat:
243-
print(*row)
244-
245-
print("\n--- Using nodeToString ---")
246-
print(nodeToString(myNode))
247-
248-
print("\n--- Custom unit size ---")
249-
print(nodeToString(myNode, unitSize=1))
250-

0 commit comments

Comments
 (0)