def _update_kwargs(self, x, kwargs_list):
        """

        :param x: list of parameters corresponding to the free parameter of the first lens model in the list
        :param kwargs_list: list of lens model kwargs
        :return: updated kwargs_list
        """
        lens_model = self._lens_mode_list[0]
        if self._solver_type == 'CENTER':
            [center_x, center_y] = x
            kwargs_list[0]['center_x'] = center_x
            kwargs_list[0]['center_y'] = center_y
        elif self._solver_type == 'ELLIPSE':
            [e1, e2] = x
            kwargs_list[0]['e1'] = e1
            kwargs_list[0]['e2'] = e2
        elif self._solver_type == 'SHAPELETS':
            [c10, c01] = x
            coeffs = list(kwargs_list[0]['coeffs'])
            coeffs[1: 3] = [c10, c01]
            kwargs_list[0]['coeffs'] = coeffs
        elif self._solver_type == 'THETA_E_PHI':
            [theta_E, phi_G] = x
            kwargs_list[0]['theta_E'] = theta_E
            phi_G_no_sense, gamma_ext = param_util.ellipticity2phi_gamma(kwargs_list[1]['e1'], kwargs_list[1]['e2'])
            e1, e2 = param_util.phi_gamma_ellipticity(phi_G, gamma_ext)
            kwargs_list[1]['e1'] = e1
            kwargs_list[1]['e2'] = e2
        else:
            raise ValueError("Solver type %s not supported for 2-point solver!" % self._solver_type)
        return kwargs_list
def _update_kwargs ( self , x , kwargs_list ) : lens_model = self . _lens_mode_list [ 0 ] if self . _solver_type == 'CENTER' : [ center_x , center_y ] = x kwargs_list [ 0 ] [ 'center_x' ] = center_x kwargs_list [ 0 ] [ 'center_y' ] = center_y elif self . _solver_type == 'ELLIPSE' : [ e1 , e2 ] = x kwargs_list [ 0 ] [ 'e1' ] = e1 kwargs_list [ 0 ] [ 'e2' ] = e2 elif self . _solver_type == 'SHAPELETS' : [ c10 , c01 ] = x coeffs = list ( kwargs_list [ 0 ] [ 'coeffs' ] ) coeffs [ 1 : 3 ] = [ c10 , c01 ] kwargs_list [ 0 ] [ 'coeffs' ] = coeffs elif self . _solver_type == 'THETA_E_PHI' : [ theta_E , phi_G ] = x kwargs_list [ 0 ] [ 'theta_E' ] = theta_E phi_G_no_sense , gamma_ext = param_util . ellipticity2phi_gamma ( kwargs_list [ 1 ] [ 'e1' ] , kwargs_list [ 1 ] [ 'e2' ] ) e1 , e2 = param_util . phi_gamma_ellipticity ( phi_G , gamma_ext ) kwargs_list [ 1 ] [ 'e1' ] = e1 kwargs_list [ 1 ] [ 'e2' ] = e2 else : raise ValueError ( "Solver type %s not supported for 2-point solver!" % self . _solver_type ) return kwargs_list
:param x: list of parameters corresponding to the free parameter of the first lens model in the list
        :param kwargs_list: list of lens model kwargs
        :return: updated kwargs_list