def close(self):
if hasattr(self, '<STR_LIT>'):<EOL><INDENT>if self._FITS is not None:<EOL><INDENT>self._FITS.close()<EOL>self._FITS = None<EOL><DEDENT><DEDENT>self._filename = None<EOL>self.mode = None<EOL>self.charmode = None<EOL>self.intmode = None<EOL>self.hdu_list = None<EOL>self.hdu_map = None<EOL>
Close the fits file and set relevant metadata to None