def getParams(self, args, i):
        """

        :param args:
        :param i:
        :return:
        """
        kwargs_cosmo = {}
        if self._Ddt_sampling is True:
            if self._cosmo_type == 'D_dt':
                if 'D_dt' not in self._kwargs_fixed:
                    kwargs_cosmo['D_dt'] = args[i]
                    i += 1
                else:
                    kwargs_cosmo['D_dt'] = self._kwargs_fixed['D_dt']
        if self._mass_scaling is True:
            if 'scale_factor' not in self._kwargs_fixed:
                kwargs_cosmo['scale_factor'] = args[i: i + self._num_scale_factor]
                i += self._num_scale_factor
            else:
                kwargs_cosmo['scale_factor'] = self._kwargs_fixed['scale_factor']
        if self._point_source_offset is True:
            if 'delta_x_image' not in self._kwargs_fixed:
                kwargs_cosmo['delta_x_image'] = args[i: i + self._num_images]
                i += self._num_images
            else:
                kwargs_cosmo['delta_x_image'] = self._kwargs_fixed['delta_x_image']
            if 'delta_y_image' not in self._kwargs_fixed:
                kwargs_cosmo['delta_y_image'] = args[i: i + self._num_images]
                i += self._num_images
            else:
                kwargs_cosmo['delta_y_image'] = self._kwargs_fixed['delta_y_image']
        return kwargs_cosmo, i
def getParams ( self , args , i ) : kwargs_cosmo = { } if self . _Ddt_sampling is True : if self . _cosmo_type == 'D_dt' : if 'D_dt' not in self . _kwargs_fixed : kwargs_cosmo [ 'D_dt' ] = args [ i ] i += 1 else : kwargs_cosmo [ 'D_dt' ] = self . _kwargs_fixed [ 'D_dt' ] if self . _mass_scaling is True : if 'scale_factor' not in self . _kwargs_fixed : kwargs_cosmo [ 'scale_factor' ] = args [ i : i + self . _num_scale_factor ] i += self . _num_scale_factor else : kwargs_cosmo [ 'scale_factor' ] = self . _kwargs_fixed [ 'scale_factor' ] if self . _point_source_offset is True : if 'delta_x_image' not in self . _kwargs_fixed : kwargs_cosmo [ 'delta_x_image' ] = args [ i : i + self . _num_images ] i += self . _num_images else : kwargs_cosmo [ 'delta_x_image' ] = self . _kwargs_fixed [ 'delta_x_image' ] if 'delta_y_image' not in self . _kwargs_fixed : kwargs_cosmo [ 'delta_y_image' ] = args [ i : i + self . _num_images ] i += self . _num_images else : kwargs_cosmo [ 'delta_y_image' ] = self . _kwargs_fixed [ 'delta_y_image' ] return kwargs_cosmo , i
:param args:
        :param i:
        :return: