MCPcopy
hub / github.com/numpy/numpy / flush

Method flush

numpy/_core/memmap.py:323–339  ·  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

321 self.mode = None
322
323 def flush(self):
324 """
325 Write any changes in the array to the file on disk.
326
327 For further information, see `memmap`.
328
329 Parameters
330 ----------
331 None
332
333 See Also
334 --------
335 memmap
336
337 """
338 if self.base is not None and hasattr(self.base, 'flush'):
339 self.base.flush()
340
341 def __array_wrap__(self, arr, context=None, return_scalar=False):
342 arr = super().__array_wrap__(arr, context)

Callers 6

output_dotFunction · 0.45
mainFunction · 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