MCPcopy Create free account
hub / github.com/PyTables/PyTables / fill_table

Method fill_table

bench/pytables_backend.py:68–81  ·  view source on GitHub ↗

Fills the table

(self, con)

Source from the content-addressed store, hash-verified

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)

Callers 1

create_dbMethod · 0.45

Calls 3

fill_arraysMethod · 0.80
appendMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected