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

Method _specLine

SLiCAP/SLiCAPdesignData.py:118–141  ·  view source on GitHub ↗

Creates an output line for this spec item (used with latex and rst reports) :return: list with: symbol, description, value, units :rtype: list

(self)

Source from the content-addressed store, hash-verified

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
143def specs2dict(specList):
144 """

Callers 2

specsMethod · 0.80
specsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected