CfgSParameters#

class pyedb.configuration.cfg_s_parameter_models.CfgSParameters(pedb=None, data=None, path_lib=None)#

Manage all configured S-parameter model assignments.

Overview#

apply

Write all S-parameter model assignments into the open EDB design.

get_data_from_db

Read S-parameter model assignments from EDB.

to_list

Serialize all S-parameter models to a list of dictionaries.

add

Add an S-parameter model assignment to this configuration.

s_parameters_models

Alias for models for backwards compatibility.

Import detail#

from pyedb.configuration.cfg_s_parameter_models import CfgSParameters

Property detail#

property CfgSParameters.s_parameters_models#

Alias for models for backwards compatibility.

..deprecated:: 0.76.0

Use models instead of s_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:
namestr

Model name registered in the EDB component library.

component_definitionstr

Component definition (part) name, e.g. "CAP_100nF".

file_pathstr

Absolute or library-relative path to the Touchstone file.

reference_netstr, optional

Default reference (ground) net for the model.

apply_to_allbool, optional

Assign the model to all components matching component_definition when True (default). When False, only the entries in components are assigned.

componentslist of str, optional

Reference designators to assign when apply_to_all is False.

reference_net_per_componentdict, optional

Per-component reference net overrides: {"U1": "GND_U1", "U2": "GND"}.

pin_orderlist, optional

Custom port-to-pin mapping list.

Returns:
CfgSParameterModel

The newly created model assignment object.

Examples

>>> cfg.s_parameters.add(
...     "cap_model",
...     component_definition="CAP_100nF",
...     file_path="/snp/cap.s2p",
...     reference_net="GND",
... )