@brief Class representing a single csv column
Used in TableConstructor to store header description and values of csv column
Definition at line 18 of file TableConstructorBase.py.
◆ __init__()
def python.TableConstructorBase.Column.__init__ |
( |
|
self, |
|
|
|
header = "Unknown" , |
|
|
|
headerDesc = "Unknown" , |
|
|
|
needNormalizing = False |
|
) |
| |
Column header
Definition at line 24 of file TableConstructorBase.py.
24 def __init__(self, header = "Unknown", headerDesc = "Unknown", needNormalizing = False):
28 '''Column description'''
29 self.headerDesc = headerDesc
31 '''The list storing column content'''
34 '''Flag if column needs normalization'''
35 self.needNormalizing = needNormalizing
◆ addValue()
def python.TableConstructorBase.Column.addValue |
( |
|
self, |
|
|
|
value, |
|
|
|
index = -1 |
|
) |
| |
@brief Add value to the column
Definition at line 38 of file TableConstructorBase.py.
38 def addValue(self, value, index=-1):
39 ''' @brief Add value to the column '''
40 if index < 0
or index >= len(self.content):
43 self.content[index] += value
◆ getValue()
def python.TableConstructorBase.Column.getValue |
( |
|
self, |
|
|
|
index |
|
) |
| |
@brief Get value from column with given index
Definition at line 52 of file TableConstructorBase.py.
52 def getValue(self, index):
53 ''' @brief Get value from column with given index'''
54 if index >= len(self.content):
55 log.error(
"Index out of range")
58 return self.content[index]
◆ updateValue()
def python.TableConstructorBase.Column.updateValue |
( |
|
self, |
|
|
|
value, |
|
|
|
index = -1 |
|
) |
| |
@brief Add value to the column
Definition at line 45 of file TableConstructorBase.py.
45 def updateValue(self, value, index=-1):
46 ''' @brief Add value to the column '''
47 if index < 0
or index >= len(self.content):
50 self.content[index] = value
◆ content
python.TableConstructorBase.Column.content |
◆ header
python.TableConstructorBase.Column.header |
◆ headerDesc
python.TableConstructorBase.Column.headerDesc |
◆ needNormalizing
python.TableConstructorBase.Column.needNormalizing |
The documentation for this class was generated from the following file: