get_parameter_types¶
- autoeis.parser.get_parameter_types(circuit: str, unique: bool = False) list[str] ¶
Returns a list of parameter 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 parameter types. Default is False.
- Returns:
A list of parameter types.
- Return type:
list[str]
Examples
>>> get_parameter_types("R1-[R2,P4]") ['R', 'R', 'Pw', 'Pn'] >>> get_parameter_types("R1-[R2,P4]", unique=True) ['Pn', 'Pw', 'R']