HFSSLogParser#
- class pyedb.workflows.utilities.hfss_log_parser.HFSSLogParser(log_path: str | pathlib.Path)#
High-level parser that orchestrates all block parsers.
This class provides the main interface for parsing HFSS log files. It coordinates multiple specialized parsers to extract project info, mesh statistics, adaptive passes, and sweep data.
- Parameters:
- log_path
strorpathlib.Path Path to the HFSS log file to parse.
- log_path
Examples
>>> from pathlib import Path >>> log = HFSSLogParser("/tmp/project.aedt.batchinfo.1234/hfss.log") >>> data = log.parse() >>> data.is_converged() True
Parse and check for errors:
>>> log = HFSSLogParser("simulation.log") >>> result = log.parse() >>> if result.errors(): ... print("Errors found:", result.errors()) ... else: ... print("No errors detected")
Overview#
Import detail#
from pyedb.workflows.utilities.hfss_log_parser import HFSSLogParser
Attribute detail#
- HFSSLogParser.BLOCK_MAP: dict[str, type[BlockParser]]#
- HFSSLogParser.path#
Method detail#
- HFSSLogParser.parse() ParsedLog#
Execute all sub-parsers and return a unified object.
- Returns:
ParsedLogStructured representation of the entire log including project info, mesh statistics, adaptive passes, and sweep data.
Examples
>>> log = HFSSLogParser("hfss.log") >>> result = log.parse() >>> print(f"Converged: {result.is_converged()}") >>> print(f"Passes: {len(result.adaptive)}")