ProjectBlockParser#

class pyedb.workflows.utilities.hfss_log_parser.ProjectBlockParser(lines: List[str])#

Bases: BlockParser

Extract project meta-data from the log header.

Example:

>>> block = ProjectBlockParser(lines)
>>> info = block.parse()
>>> info.name
'Patch_Antenna'

Overview#

parse

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:

Populated data object.

Return type:

ProjectInfo

Raises:

ValueError – If mandatory fields (project name or file path) cannot be located.