add_id_to_component#

MaxwellCircuitComponents.add_id_to_component(component_id, name: str | None = None)#

Add an ID to a component.

Parameters:
component_idint

ID to assign to the component.

namestr, optional

Component name. The default is None.

Returns:
int

Number of components.