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

Function populate

bench/deep-tree.py:37–49  ·  view source on GitHub ↗
(f, nlevels)

Source from the content-addressed store, hash-verified

35
36
37def populate(f, nlevels):
38 g = f.root
39 # arr = np.zeros((10,), "f4")
40 # descr = {'f0': tables.Int32Col(), 'f1': tables.Float32Col()}
41 for i in range(nlevels):
42 # dset = f.create_array(g, "DS1", arr)
43 # dset = f.create_array(g, "DS2", arr)
44 f.create_carray(g, "DS1", tb.IntAtom(), (10,))
45 f.create_carray(g, "DS2", tb.IntAtom(), (10,))
46 # dset = f.create_table(g, "DS1", descr)
47 # dset = f.create_table(g, "DS2", descr)
48 f.create_group(g, "group2_")
49 g = f.create_group(g, "group")
50
51
52def getnode(f, nlevels, niter, range_):

Callers 1

deep-tree.pyFile · 0.70

Calls 2

create_carrayMethod · 0.80
create_groupMethod · 0.80

Tested by

no test coverage detected