MCPcopy Create free account
hub / github.com/M-Nauta/ProtoTree / _node_vis

Function _node_vis

util/visualize.py:38–42  ·  view source on GitHub ↗
(node: Node, upsample_dir: str)

Source from the content-addressed store, hash-verified

36 check_call('dot -Tpdf -Gmargin=0 %s -o %s'%(from_p, to_pdf), shell=True)
37
38def _node_vis(node: Node, upsample_dir: str):
39 if isinstance(node, Leaf):
40 return _leaf_vis(node)
41 if isinstance(node, Branch):
42 return _branch_vis(node, upsample_dir)
43
44
45def _leaf_vis(node: Leaf):

Callers 1

_gen_dot_nodesFunction · 0.85

Calls 2

_leaf_visFunction · 0.85
_branch_visFunction · 0.85

Tested by

no test coverage detected