compare_components#

EmitSchematic.compare_components(component_1: EmitNode, component_2: EmitNode, exclude_props: list[str] = None) tuple[bool, dict]#

Compare two EMIT schematic components.

For single-node components (Filters, Amplifiers, Antennas, etc.), this returns the same result as compare_nodes(). For multi-node components (Radios, Emitters, Multiplexers), the root node is compared and differences from matching child nodes are merged recursively.

Parameters:
component_1EmitNode

First component.

component_2EmitNode

Second component.

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 components are the same type and a dictionary of differences. The dictionary contains the differences between the components.