compare_nodes#

EmitSchematic.compare_nodes(node_1: EmitNode, node_2: EmitNode, exclude_props: list[str] = None) tuple[bool, dict]#

Compare two EMIT nodes.

Parameters:
node_1EmitNode

First node.

node_2EmitNode

Second node.

exclude_propslist[str], optional

Additional properties to exclude from the comparison. Name and NodeID are always excluded.

Returns:
tuple[bool, dict]

A tuple containing a boolean indicating if the nodes are the same type and a dictionary of non-matching properties. The dictionary contains the differences between the nodes.