finding events from segments

Hi,

I have taken a segment of interest out an EEG data, put the data into a mne.io.RawArray with its channel names and channel type and assigned a variable name as Raw, how do I get the event/events from the mne object Raw?

An explanation and solution will be appreciated. Thanks

Hello,

why don’t you simply crop the original EEG data to the requested segment, and then use MNE’s default machinery for extracting events?

Best wishes,
Richard

Yes, I could do that but its in a pipeline made by someone else. so I can’t really make changes.

However, I have the events now, which I placed into the mne.Epoch object and then use it to find the noise_cov, I get an error.

You can check out my initial topic " error using mne.compute_covariance and evoked response" which i posted

Thanks