MCPcopy Create free account
hub / github.com/enthought/apptools / remove_node

Method remove_node

apptools/io/h5/file.py:298–310  ·  view source on GitHub ↗

Remove node Parameters ---------- node_path : str PyTable node path; e.g. '/path/to/node'.

(self, node_path)

Source from the content-addressed store, hash-verified

296 self.create_group(path)
297
298 def remove_node(self, node_path):
299 """Remove node
300
301 Parameters
302 ----------
303 node_path : str
304 PyTable node path; e.g. '/path/to/node'.
305 """
306 node = self[node_path]
307 if isinstance(node, H5Group):
308 msg = "{!r} is a group. Use `remove_group` to remove group nodes."
309 raise ValueError(msg.format(node.pathname))
310 node._f_remove()
311
312 def remove_group(self, group_path, **kwargs):
313 """Remove group

Calls 1

_f_removeMethod · 0.45