get_component_types¶
- autoeis.parser.get_component_types(circuit: str, unique: bool = False) list[str] ¶
Returns a list of component types in a circuit string.
- Parameters:
circuit (str) – CDC string representation of the input circuit. See here for details.
unique (bool, optional) – If True, returns a list of unique component types. Default is False.
- Returns:
A list of component types.
- Return type:
list[str]
Examples
>>> get_component_types("R1-[R2,P4]") ['R', 'R', 'P'] >>> get_component_types("R1-[R2,P4]", unique=True) ['P', 'R']