find_ohmic_resistors

autoeis.parser.find_ohmic_resistors(circuit: str) list[str]

Finds all ohmic resistors in a circuit (only in the main chain).

Parameters:

circuit (str) – CDC string representation of the input circuit. See here for details.

Returns:

A list of ohmic resistor labels.

Return type:

list[str]

Examples

>>> find_ohmic_resistors("R1-[R2,P4]-R5")
['R1', 'R5']