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

Method flush

numpy/core/memmap.py:301–317  ·  view source on GitHub ↗

Write any changes in the array to the file on disk. For further information, see `memmap`. Parameters ---------- None See Also -------- memmap

(self)

Source from the content-addressed store, hash-verified

299 self.mode = None
300
301 def flush(self):
302 """
303 Write any changes in the array to the file on disk.
304
305 For further information, see `memmap`.
306
307 Parameters
308 ----------
309 None
310
311 See Also
312 --------
313 memmap
314
315 """
316 if self.base is not None and hasattr(self.base, 'flush'):
317 self.base.flush()
318
319 def __array_wrap__(self, arr, context=None):
320 arr = super().__array_wrap__(arr, context)

Callers 6

output_dotFunction · 0.45
check_documentationFunction · 0.45
mainFunction · 0.45
__new__Method · 0.45
test_flushMethod · 0.45
test_mmap_closeMethod · 0.45

Calls

no outgoing calls

Tested by 2

test_flushMethod · 0.36
test_mmap_closeMethod · 0.36