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

Function check_open_leaf

bench/open_close-bench.py:121–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119
120
121def check_open_leaf():
122 for i in range(niter):
123 print("------------------ open_leaf #%s -----------------------" % i)
124 tref = clock()
125 fileh = tb.open_file(filename)
126 leaf = fileh.root.ngroup0.ngroup1.array9
127 # Access to an attribute
128 _ = leaf._v_attrs.CLASS
129 fileh.close()
130 show_stats("After closing file", tref)
131
132
133if __name__ == "__main__":

Callers

nothing calls this directly

Calls 2

show_statsFunction · 0.70
closeMethod · 0.45

Tested by

no test coverage detected