Creates a table with undefined parameters of *circuitObject*. If no label AND no caption are given this method returns a LaTeX tabular snippet. Else it returns a table snippet. :param circuitObject: SLiCAP circuit object that comprises the circuit
(self, circuitObject, label="", caption="", color="myyellow")
| 262 | return Snippet(TEX, self.format) |
| 263 | |
| 264 | def params(self, circuitObject, label="", caption="", color="myyellow"): |
| 265 | """ |
| 266 | Creates a table with undefined parameters of *circuitObject*. |
| 267 | If no label AND no caption are given this method returns a LaTeX |
| 268 | tabular snippet. Else it returns a table snippet. |
| 269 | |
| 270 | :param circuitObject: SLiCAP circuit object that comprises the circuit |
| 271 | data to be listed. |
| 272 | :type circuitObject: SLiCAP.SLiCAPprotos.circuit |
| 273 | |
| 274 | :param label: Reference label for the table. Defaults to an empty |
| 275 | string. |
| 276 | :type label: str |
| 277 | |
| 278 | :param caption: Text that will used as table caption. |
| 279 | :type caption: str |
| 280 | |
| 281 | :param color: Alternate row color name, should be defined in |
| 282 | 'preambuleSLiCAP.tex' defaults to 'myyellow'. Use None for |
| 283 | no background color. |
| 284 | :type color: str |
| 285 | |
| 286 | :return: SLiCAP Snippet object |
| 287 | :rtype: SLiCAP.SLiCAPprotos.Snippet |
| 288 | """ |
| 289 | if len(circuitObject.params) > 0: |
| 290 | TEX = '{\\textbf{Undefined parameters in: ' |
| 291 | TEX += circuitObject.title + '}}\n\n' |
| 292 | headerList = ["Name"] |
| 293 | alignstring = '[c]{l}' |
| 294 | linesList = [] |
| 295 | for parName in circuitObject.params: |
| 296 | linesList.append([parName]) |
| 297 | TEX += _TEXcreateCSVtable(headerList, linesList, alignstring, |
| 298 | label=label, caption=caption, |
| 299 | color=color) |
| 300 | else: |
| 301 | TEX = '{\\textbf{No undefined parameters in: ' |
| 302 | TEX += circuitObject.title + '}}\n\n' |
| 303 | return Snippet(TEX, self.format) |
| 304 | |
| 305 | def pz(self, resultObject, label="", caption="", color="myyellow"): |
| 306 | """ |
nothing calls this directly
no test coverage detected