MCPcopy Index your code
hub / github.com/PyTables/PyTables / _g_check_open

Method _g_check_open

tables/node.py:339–347  ·  view source on GitHub ↗

Check that the node is open. If the node is closed, a `ClosedNodeError` is raised.

(self)

Source from the content-addressed store, hash-verified

337 raise NotImplementedError
338
339 def _g_check_open(self) -> None:
340 """Check that the node is open.
341
342 If the node is closed, a `ClosedNodeError` is raised.
343
344 """
345 if not self._v_isopen:
346 raise ClosedNodeError("the node object is closed")
347 assert self._v_file.isopen, "found an open node in a closed file"
348
349 def _g_set_location(self, parentnode: Group, name: str) -> None:
350 """Set location-dependent attributes.

Callers 15

_f_removeMethod · 0.95
_f_moveMethod · 0.95
_f_copyMethod · 0.95
_f_isvisibleMethod · 0.95
__init__Method · 0.80
appendMethod · 0.80
__getitem__Method · 0.80
__setitem__Method · 0.80
readMethod · 0.80
appendMethod · 0.80
read_whereMethod · 0.80
append_whereMethod · 0.80

Calls 1

ClosedNodeErrorClass · 0.85

Tested by

no test coverage detected