<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update_source(self, name, paramsonly=False, reoptimize=False, **kwargs):
 """Update the dictionary for this source. Parameters name : str paramsonly : bool reoptimize : bool Re-fit background parameters in likelihood scan. """


        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)