'Create a raw object based on the current model settings.'

def get_raw(self, preload=False):

    if (not self.can_save):
        raise ValueError('Not    all    necessary    parameters    are    set')
    if (self.stim_coding == 'channel'):
        stim_code = 'channel'
    elif (self.stim_coding in '<>'):
        stim_code = 'binary'
    else:
        raise RuntimeError(('stim_coding=%r' % self.stim_coding))
    logger.info('Creating    raw    with    stim=%r,    slope=%r,    stim_code=%r,    stimthresh=%r', self.stim_chs_array, self.stim_slope, stim_code, self.stim_threshold)
    raw = RawKIT(self.sqd_file, preload=preload, stim=self.stim_chs_array, slope=self.stim_slope, stim_code=stim_code, stimthresh=self.stim_threshold)
    if np.any(self.fid):
        raw.info['dig'] = _make_dig_points(self.fid[0], self.fid[1], self.fid[2], self.elp, self.hsp)
        raw.info['dev_head_t'] = Transform('meg', 'head', self.dev_head_trans)
    return raw
