set_component_model#

Components.set_component_model(componentname, model_type='Spice', modelpath=None, modelname=None)[source]#

Assign a Spice or Touchstone model to a component.

Parameters:
componentnamestr

Name of the component.

model_typestr, optional

Type of the model. Options are "Spice" and "Touchstone". The default is "Spice".

modelpathstr, optional

Full path to the model file. The default is None.

modelnamestr, optional

Name of the model. The default is None.

Returns:
bool

True when successful, False when failed.

Examples

>>> from pyedb import Edb
>>> edbapp = Edb("myaedbfolder")
>>> edbapp.components.set_component_model("A1", model_type="Spice",
...                                            modelpath="pathtospfile",
...                                            modelname="spicemodelname")