ParsedLog#

class pyedb.workflows.utilities.hfss_log_parser.ParsedLog#

Root container returned by HFSSLogParser.parse().

Variables:
  • project (ProjectInfo) – Project meta-data.

  • init_mesh (InitMesh) – Initial-mesh metrics.

  • adaptive (list[AdaptivePass]) – Adaptive passes in chronological order.

  • sweep (Sweep | None) – Frequency-sweep summary (None if absent).

Overview#

to_dict

Deep-convert the entire object to JSON-serialisable primitives.

is_converged

Return True if the adaptive solver declared convergence.

adaptive_passes

Alias to keep API explicit.

memory_on_convergence

Memory (MB) consumed by the last converged adaptive pass.

is_completed

Heuristic indicating a successful end-to-end solve.

errors

Extract only error lines (warnings are ignored).

Import detail#

from pyedb.workflows.utilities.hfss_log_parser import ParsedLog

Attribute detail#

ParsedLog.project: ProjectInfo#
ParsedLog.init_mesh: InitMesh#
ParsedLog.adaptive: List[AdaptivePass]#
ParsedLog.sweep: Sweep | None#

Method detail#

ParsedLog.to_dict() dict#

Deep-convert the entire object to JSON-serialisable primitives.

Returns:

Plain dict / list / scalar structure.

Return type:

dict[str, Any]

ParsedLog.is_converged() bool#

Return True if the adaptive solver declared convergence.

Return type:

bool

ParsedLog.adaptive_passes() List[AdaptivePass]#

Alias to keep API explicit.

ParsedLog.memory_on_convergence() float#

Memory (MB) consumed by the last converged adaptive pass.

Returns:

Megabytes, or math.nan if no pass converged.

Return type:

float

ParsedLog.is_completed() bool#

Heuristic indicating a successful end-to-end solve.

A simulation is considered complete when both of the following conditions are satisfied:

  1. At least one adaptive pass converged.

  2. A frequency-sweep block exists with elapsed time greater than zero.

Return type:

bool

ParsedLog.errors() List[str]#

Extract only error lines (warnings are ignored).

ANSYS marks errors with [error] or *** ERROR ***.

Returns:

List of stripped error lines (empty if none).

Return type:

list[str]