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

Method flush

tables/file.py:2878–2884  ·  view source on GitHub ↗

Flush all the alive leaves in the object tree.

(self)

Source from the content-addressed store, hash-verified

2876 return (parent, name)
2877
2878 def flush(self) -> None:
2879 """Flush all the alive leaves in the object tree."""
2880 self._check_open()
2881
2882 # Flush the cache to disk
2883 self._node_manager.flush_nodes()
2884 self._flush_file(0) # 0 means local scope, 1 global (virtual) scope
2885
2886 def close(self) -> None:
2887 """Flush all the alive leaves in object tree and close the file."""

Callers 1

flush_nodesMethod · 0.45

Calls 2

_check_openMethod · 0.95
flush_nodesMethod · 0.80

Tested by

no test coverage detected