MCPcopy Create free account
hub / github.com/OpenBMB/ToolBench / get_size

Method get_size

toolbench/inference/Tree/Tree.py:71–78  ·  view source on GitHub ↗

subtree, including itself

(self)

Source from the content-addressed store, hash-verified

69 return self.father.get_depth() + 1
70
71 def get_size(self):
72 '''
73 subtree, including itself
74 '''
75 size = 1
76 for child in self.children:
77 size += child.get_size()
78 return size
79
80 def prune(self):
81 '''

Callers 1

to_json_recursiveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected