Fills the table
(self, con)
| 66 | ) |
| 67 | |
| 68 | def fill_table(self, con): |
| 69 | "Fills the table" |
| 70 | table = con.root.table |
| 71 | j = 0 |
| 72 | for i in range(0, self.nrows, self.step): |
| 73 | stop = (j + 1) * self.step |
| 74 | if stop > self.nrows: |
| 75 | stop = self.nrows |
| 76 | arr_i4, arr_f8 = self.fill_arrays(i, stop) |
| 77 | # recarr = records.fromarrays([arr_i4, arr_i4, arr_f8, arr_f8]) |
| 78 | # table.append(recarr) |
| 79 | table.append([arr_i4, arr_i4, arr_f8, arr_f8]) |
| 80 | j += 1 |
| 81 | table.flush() |
| 82 | |
| 83 | def index_col(self, con, column, kind, optlevel, verbose): |
| 84 | col = getattr(con.root.table.cols, column) |
no test coverage detected