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

Function specs2circuit

SLiCAP/SLiCAPdesignData.py:211–226  ·  view source on GitHub ↗

Adds all prameter definitions from the specList to the circuit 'cir'. :param specList: List with spec items :type specList: list :param cir: circuit to which the parameters definitions will be added :type cir: SLiCAPprotos.circuit :return: None :rtype: NoneType

(specList, cir)

Source from the content-addressed store, hash-verified

209 return specList
210
211def specs2circuit(specList, cir):
212 """
213 Adds all prameter definitions from the specList to the circuit 'cir'.
214
215 :param specList: List with spec items
216 :type specList: list
217
218 :param cir: circuit to which the parameters definitions will be added
219 :type cir: SLiCAPprotos.circuit
220
221 :return: None
222 :rtype: NoneType
223 """
224 for item in specList:
225 if item.value != '':
226 cir.defPar(item.symbol, item.value)
227
228def createSubstDict(specs):
229 """

Callers

nothing calls this directly

Calls 1

defParMethod · 0.45

Tested by

no test coverage detected