MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / convert_all_nodes

Function convert_all_nodes

convert_v3_to_v4.py:93–104  ·  view source on GitHub ↗

recursively converts all nodes inside a root node. Args: root_node (ET.Element): the root node to start the conversion.

(root_node: ET.Element)

Source from the content-addressed store, hash-verified

91
92
93def convert_all_nodes(root_node: ET.Element) -> None:
94 """recursively converts all nodes inside a root node.
95 Args:
96 root_node (ET.Element): the root node to start the conversion.
97 """
98
99 def recurse(base_node: ET.Element) -> None:
100 convert_single_node(base_node)
101 for node in base_node:
102 recurse(node)
103
104 recurse(root_node)
105
106
107def convert_stream(in_stream: typing.TextIO, out_stream: typing.TextIO):

Callers 1

convert_streamFunction · 0.85

Calls 1

recurseFunction · 0.85

Tested by

no test coverage detected