parse_component¶
- autoeis.parser.parse_component(c: str) str ¶
Returns the component type of a component/parameter label.
- Parameters:
c (str) – String representation of a component/parameter label.
- Returns:
The type of the component label from the set {R,C,L,P}.
- Return type:
str
Examples
>>> parse_component("R1") 'R' >>> parse_component("P2n") 'P'