{ } Raw JSON

bundles / astropy latest / astropy / io / fits / hdu / hdulist / HDUList / close

function

astropy.io.fits.hdu.hdulist:HDUList.close

source: /astropy/io/fits/hdu/hdulist.py :1049

Signature

def   close ( self output_verify = exception verbose = False closed = True )

Summary

Close the associated FITS file and memmap object, if any.

Parameters

output_verify : str

Output verification option. Must be one of "fix", "silentfix", "ignore", "warn", or "exception". May also be any combination of "fix" or "silentfix" with "+ignore", +warn, or +exception" (e.g. ``"fix+warn"). See astropy:verify for more info.

verbose : bool

When True, print out verbose messages.

closed : bool

When True, close the underlying file object.

Aliases

  • astropy.io.fits.HDUList.close