Creates an index dict for the dependent variables, this easies the construction of the matrix. :param circuitObject: Circuit object to be updated :type circuitObject: SLiCAPprotos.circuit :return: SLiCAP circuit object :rtype: SLiCAP circuit object
(circuitObject)
| 83 | |
| 84 | |
| 85 | def _createDepVarIndex(circuitObject): |
| 86 | """ |
| 87 | Creates an index dict for the dependent variables, this easies the |
| 88 | construction of the matrix. |
| 89 | |
| 90 | :param circuitObject: Circuit object to be updated |
| 91 | :type circuitObject: SLiCAPprotos.circuit |
| 92 | |
| 93 | :return: SLiCAP circuit object |
| 94 | :rtype: SLiCAP circuit object |
| 95 | """ |
| 96 | varIndex = {} |
| 97 | for i in range(len(circuitObject.dep_vars)): |
| 98 | if circuitObject.dep_vars[i][0:2] == 'V_': |
| 99 | varIndex[circuitObject.dep_vars[i][2:]] = i |
| 100 | else: |
| 101 | varIndex[circuitObject.dep_vars[i]] = i |
| 102 | return varIndex |
| 103 | |
| 104 | |
| 105 | def _makeMatrices(instr): |
no outgoing calls
no test coverage detected