Fixed epochs and fixed events

If you have a question or issue with MNE-Python, please include the following info:

  • MNE-Python version: 0.23
  • operating system: Windows 10

Greeting,

On my dataset, I have different events with different lengths of time. I want to make each second of each event as an epoch for classification purposes later. To do that I used make_fixed_length_epochs method. Unfortunately, this step replaced all events ids with number one. To overcome this issue I thought about using make_fixed_length_events method but it feels lots of work.

Any suggestion that makes my life easier? :sweat_smile: :smiling_face_with_three_hearts:

Hello @ibra332,

it appears that currently, the only “officially” supported way to achieve what you’re asking for is indeed through using make_fixed_length_events(). make_fixed_length_epochs() currently doesn’t allow for a specification of a custom event ID.

I have opened a feature request:

Best wishes,
Richard

1 Like