3.2.2.11. lekkersim.Model.put
- Model.put(source_pin: str | Pin | None = None, target_pin: tuple[Structure, Pin] | None = None, param_mapping: dict | None = None) Structure
Function for putting a model in a Solver object, and eventually specify connections
This function creates a Structure object for the model and place it in the current active Solver If both pins and pint are provided, the connection also is made.
- Parameters:
source_pin (str) – pin of model to be connected
target_pin (tuple) – tuple (structure (Structure) , pin (str)) existing structure and pin to which to connect pins of model
param_mapping – dictionary of {oldname (str) : newname (str)} containing the mapping of the names of the parameters