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

Method get_node_attr

tables/file.py:1989–2005  ·  view source on GitHub ↗

Get a PyTables attribute from the given node. Parameters ---------- where, name These arguments work as in :meth:`File.get_node`, referencing the node to be acted upon. attrname The name of the attribute to retrieve. If the named

(
        self, where: Node | str, attrname: str, name: str | None = None
    )

Source from the content-addressed store, hash-verified

1987 obj._f_remove(recursive)
1988
1989 def get_node_attr(
1990 self, where: Node | str, attrname: str, name: str | None = None
1991 ) -> Any:
1992 """Get a PyTables attribute from the given node.
1993
1994 Parameters
1995 ----------
1996 where, name
1997 These arguments work as in :meth:`File.get_node`, referencing the
1998 node to be acted upon.
1999 attrname
2000 The name of the attribute to retrieve. If the named
2001 attribute does not exist, an AttributeError is raised.
2002
2003 """
2004 obj = self.get_node(where, name=name)
2005 return obj._f_getattr(attrname)
2006
2007 def set_node_attr(
2008 self,

Callers 15

test21_attrsOfNodeMethod · 0.80
test01_setAttributesMethod · 0.80
check_nameMethod · 0.80
test02_vlen_str_arrayMethod · 0.80
test_readFileMethod · 0.80
test_openFileAMethod · 0.80
test_openFileRWMethod · 0.80
test_readNewFileWMethod · 0.80

Calls 2

get_nodeMethod · 0.95
_f_getattrMethod · 0.80

Tested by 15

test21_attrsOfNodeMethod · 0.64
test01_setAttributesMethod · 0.64
check_nameMethod · 0.64
test02_vlen_str_arrayMethod · 0.64
test_readFileMethod · 0.64
test_openFileAMethod · 0.64
test_openFileRWMethod · 0.64
test_readNewFileWMethod · 0.64