The siwave_log_parser.py module#

Summary#

AEDTVersion

AEDT version information extracted from log header.

BatchInfo

Batch simulation run metadata.

SimSettings

Simulation settings and configuration.

WarningEntry

Single warning message from the simulation log.

ProfileEntry

Performance profile entry showing task timing and resource usage.

BlockParser

Base class for a single block parser.

HeaderBlockParser

Extract AEDT version information from the log header.

BatchSettingsBlockParser

Extract batch information and simulation settings from the log.

WarningsBlockParser

Extract warning entries from the simulation log.

ProfileBlockParser

Extract profile entries showing task timing and resource usage.

ParsedSiwaveLog

Root container returned by SiwaveLogParser.parse().

SiwaveLogParser

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#