|
|
@@ -130,12 +130,3 @@ class Parser(object): |
|
|
|
if len(self.data) and self.ts_field is not None: |
|
|
|
self.min_timestamp = self.data[0][self.ts_field] |
|
|
|
self.max_timestamp = self.data[-1][self.ts_field] |
|
|
|
|
|
|
|
def fill_table(self, table): |
|
|
|
"""Fill a PyTables table object with the parsed data. |
|
|
|
The table's rows must match the parser's layout""" |
|
|
|
row = table.row |
|
|
|
for data in self.data: |
|
|
|
for (n, (name, type)) in enumerate(self.layout.fields): |
|
|
|
row[name] = data[n] |
|
|
|
row.append() |