validate_circuit¶
- autoeis.parser.validate_circuit(circuit: str) bool ¶
Checks if a circuit string is valid.
- This function ensures that the circuit string:
is not empty,
contains valid element names (
R
,C
,L
,P
),and, doesn’t contain duplicate elements, e.g.,
R1-[P2,P2]
.
- Parameters:
circuit (str) – CDC string representation of the input circuit. See here for details.
- Returns:
True if the circuit string is valid, False otherwise.
- Return type:
bool