def fitsopen(name, mode='readonly', memmap=None, save_backup=False, cache=True, lazy_load_hdus=None, **kwargs):
 from .. import conf
 if (memmap is None):
  memmap = (None if conf.use_memmap else False)
 else:
  memmap = bool(memmap)
 if (lazy_load_hdus is None):
  lazy_load_hdus = conf.lazy_load_hdus
 else:
  lazy_load_hdus = bool(lazy_load_hdus)
 if (('uint16' in kwargs) and ('uint' not in kwargs)):
  kwargs['uint'] = kwargs['uint16']
  del kwargs['uint16']
  warnings.warn('The uint16 keyword argument is deprecated since v1.1.0.  Use the uint argument instead.', AstropyDeprecationWarning)
 if ('uint' not in kwargs):
  kwargs['uint'] = conf.enable_uint
 if (not name):
  raise ValueError('Empty filename: {}'.format(repr(name)))
 return HDUList.fromfile(name, mode, memmap, save_backup, cache, lazy_load_hdus, **kwargs)

def fitsopen ( name , mode = 'readonly' , memmap = None , save_backup = False , cache = True , lazy_load_hdus = None , ** kwargs ) : from . . import conf if ( memmap is None ) : memmap = ( None if conf . use_memmap else False ) else : memmap = bool ( memmap ) if ( lazy_load_hdus is None ) : lazy_load_hdus = conf . lazy_load_hdus else : lazy_load_hdus = bool ( lazy_load_hdus ) if ( ( 'uint16' in kwargs ) and ( 'uint' not in kwargs ) ) : kwargs [ 'uint' ] = kwargs [ 'uint16' ] del kwargs [ 'uint16' ] warnings . warn ( 'The uint16 keyword argument is deprecated since v1.1.0.  Use the uint argument instead.' , AstropyDeprecationWarning ) if ( 'uint' not in kwargs ) : kwargs [ 'uint' ] = conf . enable_uint if ( not name ) : raise ValueError ( 'Empty filename: {}' . format ( repr ( name ) ) ) return HDUList . fromfile ( name , mode , memmap , save_backup , cache , lazy_load_hdus , ** kwargs )
factory function to open a fits file and return an hdulist object .