code: def read_sources_from_numpy_file(npfile):
      
      srcs = np.load(npfile).flat[0]['sources']
  
      roi = ROIModel()
      roi.load_sources(srcs.values())
      return roi.create_table()
docs: Open a numpy pickle file and read all the new sources into a dictionary
  
      Parameters
      ----------
      npfile : file name
         The input numpy pickle file
  
      Returns
      -------
      tab : `~astropy.table.Table`