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

Function write_array

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

Source from the content-addressed store, hash-verified

60
61
62def write_array(filename, nchildren, niter):
63 for i in range(niter):
64 fileh = tb.open_file(filename, mode="w")
65 for child in range(nchildren):
66 fileh.create_array(
67 fileh.root, "array" + str(child), [1, 1], "child: %d" % child
68 )
69 show_mem("After creating. Iter %s" % i)
70 fileh.close()
71 show_mem("After close")
72
73
74def read_array(filename, nchildren, niter):

Callers

nothing calls this directly

Calls 3

show_memFunction · 0.85
create_arrayMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected