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

Method fill_array

bench/lookup_bench.py:105–117  ·  view source on GitHub ↗

Fills the array

(self)

Source from the content-addressed store, hash-verified

103 )
104
105 def fill_array(self):
106 "Fills the array"
107 earray = self.con.root.earray
108 j = 0
109 arr = self.get_array(0, self.step)
110 for i in range(0, self.nrows, self.step):
111 stop = (j + 1) * self.step
112 if stop > self.nrows:
113 stop = self.nrows
114 # ##arr = self.get_array(i, stop, dtype)
115 earray.append(arr)
116 j += 1
117 earray.flush()
118
119 def get_array(self, start, stop):
120 arr = np.arange(start, stop, dtype="float")

Callers 1

create_dbMethod · 0.95

Calls 3

get_arrayMethod · 0.95
appendMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected