def load_fis(dir=None):
    """Load fits images in a directory"""
    if dir is None:
        import tkFileDialog
        try:
            dir=tkFileDialog.askdirectory()
        except:
            return
    if dir is None:
        return None
    from os.path import walk
    walk(dir,fits_list,"*.fits")
def load_fis ( dir = None ) : if dir is None : import tkFileDialog try : dir = tkFileDialog . askdirectory ( ) except : return if dir is None : return None from os . path import walk walk ( dir , fits_list , "*.fits" )
Load fits images in a directory