code: def find_sources(self, prefix='', **kwargs):
          
          timer = Timer.create(start=True)
          self.logger.info('Starting.')
  
          schema = ConfigSchema(self.defaults['sourcefind'],
                                tsmap=self.defaults['tsmap'],
                                tscube=self.defaults['tscube'])
  
          schema.add_option('search_skydir', None, '', SkyCoord)
          schema.add_option('search_minmax_radius', [None, 1.0], '', list)
  
          config = utils.create_dict(self.config['sourcefind'],
                                     tsmap=self.config['tsmap'],
                                     tscube=self.config['tscube'])
          config = schema.create_config(config, **kwargs)
  
          # Defining default properties of test source model
          config['model'].setdefault('Index', 2.0)
          config['model'].setdefault('SpectrumType', 'PowerLaw')
          config['model'].setdefault('SpatialModel', 'PointSource')
          config['model'].setdefault('Prefactor', 1E-13)
  
          o = {'sources': [], 'peaks': []}
  
          for i in range(config['max_iter']):
              srcs, peaks = self._find_sources_iterate(prefix, i, **config)
  
              self.logger.info('Found %i sources in iteration %i.' %
                               (len(srcs), i))
  
              o['sources'] += srcs
              o['peaks'] += peaks
              if len(srcs) == 0:
                  break
  
          self.logger.info('Done.')
          self.logger.info('Execution time: %.2f s', timer.elapsed_time)
  
          return o
docs: An iterative source-finding algorithm that uses likelihood
          ratio (TS) maps of the region of interest to find new sources.
          After each iteration a new TS map is generated incorporating
          sources found in the previous iteration.  The method stops
          when the number of iterations exceeds ``max_iter`` or no
          sources exceeding ``sqrt_ts_threshold`` are found.
  
          Parameters
          ----------
          {options}
  
          tsmap : dict
             Keyword arguments dictionary for tsmap method.
  
          tscube : dict
             Keyword arguments dictionary for tscube method.
  
          Returns
          -------
  
          peaks : list
             List of peak objects.
  
          sources : list
             List of source objects.