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

Function write_carray

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

Source from the content-addressed store, hash-verified

92
93
94def write_carray(filename, nchildren, niter):
95 for i in range(niter):
96 fileh = tb.open_file(filename, mode="w")
97 for child in range(nchildren):
98 fileh.create_carray(
99 fileh.root,
100 "array" + str(child),
101 tb.IntAtom(),
102 (2,),
103 "child: %d" % child,
104 )
105 show_mem("After creating. Iter %s" % i)
106 fileh.close()
107 show_mem("After close")
108
109
110def read_carray(filename, nchildren, niter):

Callers

nothing calls this directly

Calls 3

show_memFunction · 0.85
create_carrayMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected