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

Function check_open_group

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

Source from the content-addressed store, hash-verified

107
108
109def check_open_group():
110 for i in range(niter):
111 print("------------------ open_group #%s ------------------------" % i)
112 tref = clock()
113 fileh = tb.open_file(filename)
114 group = fileh.root.ngroup0.ngroup1
115 # Access to an attribute
116 _ = group._v_attrs.CLASS
117 fileh.close()
118 show_stats("After closing file", tref)
119
120
121def check_open_leaf():

Callers

nothing calls this directly

Calls 2

show_statsFunction · 0.70
closeMethod · 0.45

Tested by

no test coverage detected