'Get raw data and times.
Parameters
item : tuple or array-like
See below for use cases.
Returns
data : ndarray, shape (n_channels, n_times)
The raw data.
times : ndarray, shape (n_times,)
The times associated with the data.
Examples
Generally raw data is accessed as::
>>> data, times = raw[picks, time_slice]  # doctest: +SKIP
To get all data, you can thus do either of::
>>> data, times = raw[:]  # doctest: +SKIP
Which will be equivalent to:
>>> data, times = raw[:, :]  # doctest: +SKIP
To get only the good MEG data from 10-20 seconds, you could do::
>>> picks = mne.pick_types(raw.info, meg=True, exclude=\'bads\')  # doctest: +SKIP
>>> t_idx = raw.time_as_index([10., 20.])  # doctest: +SKIP
>>> data, times = raw[picks, t_idx[0]:t_idx[1]]  # doctest: +SKIP'

def __getitem__(self, item):

    (sel, start, stop) = self._parse_get_set_params(item)
    if self.preload:
        data = self._data[sel, start:stop]
    else:
        data = self._read_segment(start=start, stop=stop, sel=sel, projector=self._projector, verbose=self.verbose)
    times = self.times[start:stop]
    return (data, times)
