code: def DownloadData(name='all', data_dir=DataPath()):
      
      if name == 'all':
          for tmp_name in fits_collection.keys():
              DownloadData(name=tmp_name, data_dir=data_dir)
          return
  
      if name not in fits_collection.keys():
          raise Exception('Invalid fit name : %s'%name)
  
      print('Downloading %s data'%name)
      data_url = fits_collection[name].data_url
      filename = data_url.split('/')[-1]
      try:
          os.makedirs(data_dir)
      except OSError as exc:
          if exc.errno == errno.EEXIST and os.path.isdir(data_dir):
              pass
          else:
              raise
      urlretrieve(data_url, data_dir + '/' + filename)
docs: Downloads fit data to DataPath() diretory.
          If name='all', gets all fit data.