Adds a the definition of a global parameter (from SLiCAP.lib or from a user library) and, recursively, the parameters from its expression to the dictionary parDict. :param parName: Name of the parameter. :type parName: sympy.Symbol, or str. :return: parDict :rtype: dic
(parName, parDict)
| 1137 | return parentParDefs |
| 1138 | |
| 1139 | def _addParDefsParam(parName, parDict): |
| 1140 | """ |
| 1141 | Adds a the definition of a global parameter (from SLiCAP.lib or from a |
| 1142 | user library) and, recursively, the parameters from its expression to |
| 1143 | the dictionary parDict. |
| 1144 | |
| 1145 | :param parName: Name of the parameter. |
| 1146 | :type parName: sympy.Symbol, or str. |
| 1147 | |
| 1148 | :return: parDict |
| 1149 | :rtype: dict |
| 1150 | """ |
| 1151 | parName = str(parName) |
| 1152 | if parName not in parDict.keys(): |
| 1153 | if parName in _USERPARAMS.keys(): |
| 1154 | parDict[parName] = _USERPARAMS[parName] |
| 1155 | newParams = _USERPARAMS[parName].atoms(sp.Symbol) |
| 1156 | for newParam in newParams: |
| 1157 | _addParDefsParam(newParam, parDict) |
| 1158 | elif parName in _SLiCAPPARAMS.keys(): |
| 1159 | parDict[parName] = _SLiCAPPARAMS[parName] |
| 1160 | newParams = _SLiCAPPARAMS[parName].atoms(sp.Symbol) |
| 1161 | for newParam in newParams: |
| 1162 | _addParDefsParam(newParam, parDict) |
| 1163 | return parDict |
| 1164 | |
| 1165 | """ PASS 4 FUNCTIONS """ |
| 1166 |