Extract data from raw without epochs creation

Hi!
I have an eye-open/eye-closed condition in one raw file. I want to split the raw using marks on the stim channel, but without creating epochs. I would appreciate your help :slight_smile:

  • MNE version: e.g. 1.4.2
  • operating system: Ubuntu 18.04

Assumning that there are not multiple eyes open/eyes closed segments, you could use raw.crop() to create subsets of the original data. You might want to operate on a copy though, e.g. raw.copy().crop(...).

Thanks! But I have different durations for open and closed eyes for different subjects. I want to get the trigger time points, but I don’t quite understand how to do it

You can find events in your trigger channel using mne.find_events(raw).