Creates an output line for this spec item (used with latex and rst reports) :return: list with: symbol, description, value, units :rtype: list
(self)
| 116 | return html |
| 117 | |
| 118 | def _specLine(self): |
| 119 | """ |
| 120 | Creates an output line for this spec item (used with latex and rst reports) |
| 121 | |
| 122 | :return: list with: symbol, description, value, units |
| 123 | :rtype: list |
| 124 | """ |
| 125 | # symbol |
| 126 | line = [self.symbol] |
| 127 | # description |
| 128 | line.append(self.description) |
| 129 | |
| 130 | # value |
| 131 | if type(self.value) == str: |
| 132 | line.append('') |
| 133 | else: |
| 134 | line.append(self.value) |
| 135 | |
| 136 | # units |
| 137 | if self.units== '': |
| 138 | line.append('') |
| 139 | else: |
| 140 | line.append(self.units) |
| 141 | return line |
| 142 | |
| 143 | def specs2dict(specList): |
| 144 | """ |