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

Function write_earray

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

Source from the content-addressed store, hash-verified

122
123
124def write_earray(filename, nchildren, niter):
125 for i in range(niter):
126 fileh = tb.open_file(filename, mode="w")
127 for child in range(nchildren):
128 ea = fileh.create_earray(
129 fileh.root,
130 "array" + str(child),
131 tb.IntAtom(),
132 shape=(0,),
133 title="child: %d" % child,
134 )
135 ea.append([1, 2, 3])
136 show_mem("After creating. Iter %s" % i)
137 fileh.close()
138 show_mem("After close")
139
140
141def read_earray(filename, nchildren, niter):

Callers

nothing calls this directly

Calls 4

show_memFunction · 0.85
create_earrayMethod · 0.80
appendMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected