CfgSParameters#
- class pyedb.configuration.cfg_s_parameter_models.CfgSParameters(pedb=None, data=None, path_lib=None)#
Manage all configured S-parameter model assignments.
Overview#
Write all S-parameter model assignments into the open EDB design. |
|
Read S-parameter model assignments from EDB. |
|
Serialize all S-parameter models to a list of dictionaries. |
|
Add an S-parameter model assignment to this configuration. |
Alias for |
Import detail#
from pyedb.configuration.cfg_s_parameter_models import CfgSParameters
Property detail#
- property CfgSParameters.s_parameters_models#
Alias for
modelsfor backwards compatibility.- ..deprecated:: 0.76.0
Use
modelsinstead ofs_parameters_models.
Attribute detail#
- CfgSParameters.path_libraries = None#
- CfgSParameters.models#
Method detail#
- CfgSParameters.apply()#
Write all S-parameter model assignments into the open EDB design.
- CfgSParameters.get_data_from_db(cfg_components)#
Read S-parameter model assignments from EDB.
- CfgSParameters.to_list()#
Serialize all S-parameter models to a list of dictionaries.
- CfgSParameters.add(name: str, component_definition: str, file_path: str, reference_net: str = '', apply_to_all: bool = True, components=None, reference_net_per_component=None, pin_order=None)#
Add an S-parameter model assignment to this configuration.
- Parameters:
- name
str Model name registered in the EDB component library.
- component_definition
str Component definition (part) name, e.g.
"CAP_100nF".- file_path
str Absolute or library-relative path to the Touchstone file.
- reference_net
str,optional Default reference (ground) net for the model.
- apply_to_allbool,
optional Assign the model to all components matching component_definition when
True(default). WhenFalse, only the entries in components are assigned.- components
listofstr,optional Reference designators to assign when apply_to_all is
False.- reference_net_per_component
dict,optional Per-component reference net overrides:
{"U1": "GND_U1", "U2": "GND"}.- pin_order
list,optional Custom port-to-pin mapping list.
- name
- Returns:
CfgSParameterModelThe newly created model assignment object.
Examples
>>> cfg.s_parameters.add( ... "cap_model", ... component_definition="CAP_100nF", ... file_path="/snp/cap.s2p", ... reference_net="GND", ... )