ProjectBlockParser#
- class pyedb.workflows.utilities.hfss_log_parser.ProjectBlockParser(lines: list[str])#
Bases:
BlockParserExtract project meta-data from the log header.
This parser searches for project name, design name, user information, and command line arguments in the log file header section.
Examples
>>> lines = [ ... "Project: MyProject, Design: HFSSDesign1", ... "Running as user: engineer", ... 'Using command line: "ansysedt.exe"', ... "Batch Solve/Save: /path/to/project.aedt", ... ] >>> parser = ProjectBlockParser(lines) >>> info = parser.parse() >>> info.name 'MyProject'
Overview#
Parse the stored lines and return a ProjectInfo instance. |
Import detail#
from pyedb.workflows.utilities.hfss_log_parser import ProjectBlockParser
Method detail#
- ProjectBlockParser.parse() ProjectInfo#
Parse the stored lines and return a ProjectInfo instance.
- Returns:
ProjectInfoPopulated project meta-data object.
Examples
>>> lines = ["Project: Antenna, Design: HFSS1", "Batch Solve/Save: /tmp/antenna.aedt"] >>> parser = ProjectBlockParser(lines) >>> info = parser.parse() >>> info.name 'Antenna'