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

Function htmlParValue

SLiCAP/SLiCAPhtml.py:1102–1115  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

1100 return html
1101
1102def 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
1117def htmlElValue(cir, elName, param='value', numeric=False):
1118 """

Callers

nothing calls this directly

Calls 2

roundNFunction · 0.90
getParValueMethod · 0.45

Tested by

no test coverage detected