The siwave_log_parser.py module#
Summary#
AEDT version information extracted from log header. |
|
Batch simulation run metadata. |
|
Simulation settings and configuration. |
|
Single warning message from the simulation log. |
|
Performance profile entry showing task timing and resource usage. |
|
Base class for a single block parser. |
|
Extract AEDT version information from the log header. |
|
Extract batch information and simulation settings from the log. |
|
Extract warning entries from the simulation log. |
|
Extract profile entries showing task timing and resource usage. |
|
Root container returned by SiwaveLogParser.parse(). |
|
High-level parser that orchestrates all block parsers. |
Description#
SIwave log file parser for extracting simulation results and metrics.
This module provides tools to parse Ansys SIwave batch simulation logs into structured dataclasses, making it easy to extract timing information, warnings, profile data, and simulation status.
Examples#
Basic usage for parsing a SIwave log file:
>>> from pyedb.workflows.utilities.siwave_log_parser import SiwaveLogParser
>>> parser = SiwaveLogParser(r"C:\path o\siwave.log")
>>> log = parser.parse()
>>> log.summary()
>>> log.to_json("siwave.json")
Check simulation completion status:
>>> if log.is_completed():
... print("Simulation completed successfully")
... else:
... print("Simulation failed or was aborted")
Module detail#
- siwave_log_parser.RE_TS_DATE_FIRST#
- siwave_log_parser.RE_TS_TIME_FIRST#
- siwave_log_parser.parser#