code: def update_source(self, name, paramsonly=False, reoptimize=False, **kwargs):
          
  
          npts = self.config['gtlike']['llscan_npts']
          optimizer = kwargs.get('optimizer', self.config['optimizer'])
  
          sd = self.get_src_model(name, paramsonly, reoptimize, npts,
                                  optimizer=optimizer)
          src = self.roi.get_source_by_name(name)
          src.update_data(sd)
docs: Update the dictionary for this source.
  
          Parameters
          ----------
  
          name : str
  
          paramsonly : bool
  
          reoptimize : bool
             Re-fit background parameters in likelihood scan.