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

Function iternodes

bench/LRUcache-node-bench.py:32–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30
31
32def iternodes():
33 # for a in f.root.NodeContainer:
34 # pass
35 indices = np.random.randn(nodespergroup * niter) * 30 + nodespergroup / 2
36 indices = indices.astype("i4").clip(0, nodespergroup - 1)
37 g = f.get_node("/", "NodeContainer")
38 for i in indices:
39 _ = f.get_node(g, "arr%d" % i)
40 # print("a-->", _)
41
42
43print("reading nodes...")

Callers 1

time_lruFunction · 0.85

Calls 1

get_nodeMethod · 0.45

Tested by

no test coverage detected