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

Method shutdown

tables/file.py:584–601  ·  view source on GitHub ↗

Shutdown the node manager.

(self)

Source from the content-addressed store, hash-verified

582 self._close_nodes(paths, registry.pop)
583
584 def shutdown(self) -> None:
585 """Shutdown the node manager."""
586 registry = self.registry
587 cache = self.cache
588
589 # self.close_subtree('/')
590
591 keys = list(cache) # copy
592 for key in keys:
593 node = cache.pop(key)
594 if node._v_isopen:
595 registry.pop(node._v_pathname, None)
596 node._f_close()
597
598 while registry:
599 key, node = registry.popitem()
600 if node._v_isopen:
601 node._f_close()
602
603
604class File(hdf5extension.File):

Callers 1

closeMethod · 0.80

Calls 3

popMethod · 0.80
popitemMethod · 0.80
_f_closeMethod · 0.45

Tested by

no test coverage detected