Epochs on data with no events

Hi,

I'm trying to analyse data with no events (eyes closed, EEG) and I'm
trying to segment the data series into 10sec segments (named epochs in
my references). I tried the Epochs method but it requires events and I
can't find any other methods doing this.

Is there any way to do this in mne? And if not, is there a way to
convert the data to the epoch-object from SciPy or will I have to do it
all in SciPy?

Thanks,
Lasse

Hi Lasse,

you might be looking for this function:
http://martinos.org/mne/stable/generated/mne.make_fixed_length_events.html#mne.make_fixed_length_events

Best,
Denis

You could also use _segment_raw which works like this:

from mne.epochs import _segment_raw
epochs = _segment_raw(raw, 10.)

?

2016-10-18 14:11 GMT+02:00 Lasse Balmer Hansen <s147490 at student.dtu.dk>:

However, keep in mind that private functions (those that start with `_`)
are not recommended for public use, as they can change behavior or be
removed at any time without the changes being documented or going through a
deprecation cycle. So it is safer to use the public function
`make_fixed_length_events` to make events, and pass those the events to the
`Epochs` constructor.

Eric

Right, but if you are using make_fixed_length_events + Epochs, remember to
set baseline=None, otherwise every first sample of your epochs will be zero.

19 pa? 2016 3:06 PM "Eric Larson" <larson.eric.d at gmail.com> napisa?(a):