SweepBlockParser#
- class pyedb.workflows.utilities.hfss_log_parser.SweepBlockParser(lines: list[str])#
Bases:
BlockParserExtract frequency-sweep summary from the log.
This parser searches for frequency sweep information including sweep type, number of frequencies, and elapsed time.
Examples
>>> lines = [ ... "Interpolating Sweep", ... "101 Frequencies", ... "Frequency - 1 GHz", ... "Frequency - 2 GHz", ... "Elapsed time: 00:05:00", ... ] >>> parser = SweepBlockParser(lines) >>> sweep = parser.parse() >>> sweep.type 'Interpolating' >>> sweep.frequencies 101
Overview#
Return sweep information or None if no sweep block exists. |
Import detail#
from pyedb.workflows.utilities.hfss_log_parser import SweepBlockParser