CfgSetupAC#
- class pyedb.configuration.cfg_setup.CfgSetupAC(/, **data: Any)#
Bases:
CfgSetupDCBase class for AC-style setup payloads with frequency sweeps.
Overview#
Append a pre-built frequency sweep to this setup. |
|
Create a frequency sweep and append it to this setup. |
Import detail#
from pyedb.configuration.cfg_setup import CfgSetupAC
Attribute detail#
- CfgSetupAC.freq_sweep: list[CfgSetupAC.CfgFrequencySweep] | None#
Method detail#
- CfgSetupAC.append_frequency_sweep(sweep: CfgFrequencySweep)#
Append a pre-built frequency sweep to this setup.
- Parameters:
- sweep
CfgFrequencySweep Fully constructed sweep object (e.g. when round-tripping).
- sweep
- Returns:
CfgFrequencySweepThe appended sweep.
- CfgSetupAC.add_frequency_sweep(name: str, sweep_type: str = 'interpolation', start=None, stop=None, step_or_count=None, distribution: str = 'linear_count', **kwargs)#
Create a frequency sweep and append it to this setup.
- Parameters:
- name
str Sweep name. For backward compatibility a pre-built
CfgFrequencySweepis still accepted and forwarded toappend_frequency_sweep().- sweep_type
str,optional "interpolation"(default) or"discrete".- start
strorfloat,optional Inline range start frequency, e.g.
"1GHz". When given, stop and step_or_count are also required.- stop
strorfloat,optional Inline range stop frequency.
- step_or_count
str,floatorint,optional Point count (
"linear_count","log_count") or step size ("linear_scale","log_scale").- distribution
str,optional Inline range distribution. Default is
"linear_count". Aliases such as"log count"or"logcount"are accepted;"single"adds one point at start.- **kwargs
Forwarded to
CfgFrequencySweep, e.g.enforce_passivity.
- name
- Returns:
CfgFrequencySweepThe newly created sweep.
Examples
>>> hfss.add_frequency_sweep("s1", start="1GHz", stop="20GHz", step_or_count=100) >>> sw = hfss.add_frequency_sweep("s2") >>> sw.add_linear_count_frequencies("1GHz", "10GHz", 100)
Classes#
Base Pydantic model used by typed configuration payload classes. |