{ } Raw JSON

bundles / astropy latest / astropy / io / fits / file / _File / _maybe_close_mmap

function

astropy.io.fits.file:_File._maybe_close_mmap

source: /astropy/io/fits/file.py :488

Signature

def   _maybe_close_mmap ( self refcount_delta = 0 )

Summary

When mmap is in use these objects hold a reference to the mmap of the file (so there is only one, shared by all HDUs that reference this file).

Extended Summary

This will close the mmap if there are no arrays referencing it.

Aliases

  • astropy.io.fits.convenience._File._maybe_close_mmap