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

Method list_nodes

tables/file.py:2192–2203  ·  view source on GitHub ↗

Return a *list* with children nodes hanging from where. This is a list-returning version of :meth:`File.iter_nodes`.

(
        self, where: Node | str, classname: str | None = None
    )

Source from the content-addressed store, hash-verified

2190 dstfileh.close()
2191
2192 def list_nodes(
2193 self, where: Node | str, classname: str | None = None
2194 ) -> list[Node]:
2195 """Return a *list* with children nodes hanging from where.
2196
2197 This is a list-returning version of :meth:`File.iter_nodes`.
2198
2199 """
2200 group = self.get_node(where) # Does the parent exist?
2201 self._check_group(group) # Is it a group?
2202
2203 return group._f_list_nodes(classname)
2204
2205 def iter_nodes(
2206 self, where: Node | str, classname: str | None = None

Callers 15

__str__Method · 0.95
__repr__Method · 0.95
test02_listNodesMethod · 0.80
test03_TraverseTreeMethod · 0.80
table-tree.pyFile · 0.80
table1.pyFile · 0.80
vlarray2.pyFile · 0.80
tutorial1-2.pyFile · 0.80
tutorial1.pyFile · 0.80
read_fileFunction · 0.80

Calls 3

get_nodeMethod · 0.95
_check_groupMethod · 0.95
_f_list_nodesMethod · 0.80

Tested by 8

test02_listNodesMethod · 0.64
test03_TraverseTreeMethod · 0.64
read_fileFunction · 0.64
read_fileFunction · 0.64
read_file_arrFunction · 0.64
read_fileFunction · 0.64