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

Function write_group

tables/tests/check_leaks.py:36–45  ·  view source on GitHub ↗
(filename, nchildren, niter)

Source from the content-addressed store, hash-verified

34
35
36def write_group(filename, nchildren, niter):
37 for i in range(niter):
38 fileh = tb.open_file(filename, mode="w")
39 for child in range(nchildren):
40 fileh.create_group(
41 fileh.root, "group" + str(child), "child: %d" % child
42 )
43 show_mem("After creating. Iter %s" % i)
44 fileh.close()
45 show_mem("After close")
46
47
48def read_group(filename, nchildren, niter):

Callers

nothing calls this directly

Calls 3

show_memFunction · 0.85
create_groupMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected