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

Function dump_group

tables/scripts/ptdump.py:69–84  ·  view source on GitHub ↗

Dump an HDF5 group.

(pgroup, sort=False)

Source from the content-addressed store, hash-verified

67
68
69def dump_group(pgroup, sort=False):
70 """Dump an HDF5 group."""
71 node_kinds = pgroup._v_file._node_kinds[1:]
72 what = pgroup._f_walk_groups()
73 if sort:
74 what = sorted(what, key=operator.attrgetter("_v_pathname"))
75 for group in what:
76 print(str(group))
77 if options.showattrs:
78 print(f" {group._v_attrs!r}")
79 for kind in node_kinds:
80 for node in group._f_list_nodes(kind):
81 if options.verbose or options.dump:
82 dump_leaf(node)
83 else:
84 print(str(node))
85
86
87def _get_parser():

Callers 1

mainFunction · 0.85

Calls 3

dump_leafFunction · 0.85
_f_walk_groupsMethod · 0.80
_f_list_nodesMethod · 0.80

Tested by

no test coverage detected