WarningsBlockParser#
- class pyedb.workflows.utilities.siwave_log_parser.WarningsBlockParser(lines: list[str])#
Bases:
BlockParserExtract warning entries from the simulation log.
This parser identifies and extracts warning messages, particularly focusing on electrical short warnings with location information.
Examples
>>> lines = [ ... "11/10/2025 09:15:30 AM [warning] Geometry on nets VCC and GND on layer \"TOP\" " ... "are electrically shorted at approximately (12.5, 34.8)mm" ... ] >>> parser = WarningsBlockParser(lines) >>> warnings = parser.parse() >>> warnings[0].category 'SHORT' >>> warnings[0].net1 'VCC'
Overview#
Parse warning messages from log lines. |
Import detail#
from pyedb.workflows.utilities.siwave_log_parser import WarningsBlockParser
Method detail#
- WarningsBlockParser.parse() list[WarningEntry]#
Parse warning messages from log lines.
- Returns:
listofWarningEntryList of parsed warning entries with categorization and location data.
Examples
>>> lines = ["No warnings"] >>> parser = WarningsBlockParser(lines) >>> warnings = parser.parse() >>> len(warnings) 0