Callbacks
Classes
- class keysight.ads.de.db.ModelCb
Bases:
ModelCbBaseA model callback that is implemented in Python.
- __init__(callback_type: Literal[ModelCbType.PARAMETER_DEFAULT_VALUE], callback: Callable[['ModelParam', 'ModelDefBase', 'Design'], 'ParamItem']) None
- __init__(callback_type: Literal[ModelCbType.PARAMETER_MODIFIED], callback: Callable[['ItemInfo'], bool]) None
- __init__(callback_type: Literal[ModelCbType.ITEM_NETLIST], callback: Callable[[StandardInstance], str]) None
- __init__(callback_type: Literal[ModelCbType.ITEM_MODIFIED], callback: Callable[['Instance'], None]) None
Initialize a callback.
- callback_typeModelCbType
ModelCbType.PARAMETER_DEFAULT_VALUE : Override the default value set in
ModelParam.default_value. Return aParamItemModelCbType.PARAMETER_MODIFIED : Called when a parameter has been modified. Return True if dependent parameter data had been modified.
ModelCbType.ITEM_NETLIST : Called when generating a netlist. Return the netlist string
ModelCbType.ITEM_MODIFIED : Called when this item has been modified. Return None
callback : The user-supplied function to call
- class keysight.ads.de.db.ModelCbAEL
Bases:
ModelCbBaseA model callback that is implemented in AEL.
- __init__(callback_type: ModelCbType, vocabulary: str, function: str, client_data: object, enabled: bool = True) None
- property function_name: str
- get_client_data_string(format_strings: bool) str
- property vocabulary: str
- class keysight.ads.de.db.ModelCbBase
Base class for callbacks used by model definitions and model parameters.
See
de.db.ModelParamandde.db.ModelDef. Each callback function can be implemented in Python or AEL.- __init__(unused: InvalidCall, *args, **kwargs) None
Return an error about attempts to initialize objects that don’t support initialization.
- property enabled: bool
- property type: ModelCbType
- class keysight.ads.de.db.NetlistInstance
- __init__(unused: InvalidCall, *args, **kwargs) None
Return an error about attempts to initialize objects that don’t support initialization.
- property instance_name: str
- property instance_name_for_netlist: str
- property netlisted_master_name: str
- property nodes: list[NetlistNode]
- property parent_design_name: str
- class keysight.ads.de.db.NetlistNode
- __init__(unused: InvalidCall, *args, **kwargs) None
Return an error about attempts to initialize objects that don’t support initialization.
- property is_grounded: bool
- property node_name: str
- property pin_name: str
- property pin_number: int
- class keysight.ads.de.db.StandardInstance
Bases:
NetlistInstance- __init__(unused: InvalidCall, *args, **kwargs) None
Return an error about attempts to initialize objects that don’t support initialization.
- property model_def: ModelDefBase | None
Enumerated Types
- class keysight.ads.de.db.ModelCbType
An enumeration specifying the purpose of a parameter callback.
- PARAMETER_DEFAULT_VALUE = <ModelCbType.PARM_DEFAULT_VALUE_CB: 0>
This type of callback returns a design specific default parameter value.
- PARAMETER_MODIFIED = <ModelCbType.PARM_MODIFIED_CB: 1>
This type of callback is called whenever a specific parameter is modified.
- ITEM_NETLIST = <ModelCbType.ITEM_NETLIST_CB: 3>
This type of callback returns a custom netlist string.
- ITEM_MODIFIED = <ModelCbType.ITEM_MODIFIED_CB: 8>
This type of callback is called whenever a specific item is modified.