MCPcopy Index your code
hub / github.com/SLiCAP/SLiCAP_python / params_for_symbol

Function params_for_symbol

SLiCAP/schematic/component_item.py:213–219  ·  view source on GitHub ↗

Return a params dict for the symbol (preserving param order). Default values come straight from the symbol's ``data-params`` definition (see SymbolLibrary): a value of ``?`` marks a parameter the user must fill in; an empty default is omitted from the netlist until set.

(symbol_name: str)

Source from the content-addressed store, hash-verified

211
212
213def params_for_symbol(symbol_name: str) -> dict[str, str]:
214 """Return a params dict for the symbol (preserving param order).
215
216 Default values come straight from the symbol's ``data-params`` definition
217 (see SymbolLibrary): a value of ``?`` marks a parameter the user must fill in;
218 an empty default is omitted from the netlist until set."""
219 return dict(SYMBOL_PARAM_DEFAULTS.get(symbol_name, {}))
220
221
222def fixed_params_for_symbol(symbol_name: str) -> dict[str, str]:

Callers 2

__init__Method · 0.85
_rebuild_paramsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected