Returns code for inline display of parameter 'parName' from instruction 'instr'. :param cir: Circuit object that holds the parameter definition :type instr: SLiCAPprotos.circuit :param parName: Name of the parameter :type parName: string :return: HTML code for the par
(cir, parName)
| 1100 | return html |
| 1101 | |
| 1102 | def htmlParValue(cir, parName): |
| 1103 | """ |
| 1104 | Returns code for inline display of parameter 'parName' from instruction |
| 1105 | 'instr'. |
| 1106 | :param cir: Circuit object that holds the parameter definition |
| 1107 | :type instr: SLiCAPprotos.circuit |
| 1108 | |
| 1109 | :param parName: Name of the parameter |
| 1110 | :type parName: string |
| 1111 | |
| 1112 | :return: HTML code for the parameter value |
| 1113 | :rtype: string |
| 1114 | """ |
| 1115 | return '$' + str(sp.latex(roundN(cir.getParValue(parName)))) + '$' |
| 1116 | |
| 1117 | def htmlElValue(cir, elName, param='value', numeric=False): |
| 1118 | """ |
nothing calls this directly
no test coverage detected