Merging multiple EDF files

Hi MNE Group!

I have a question about merging multiple EDF files.

I ran read_raw_edf on many files but will have to merge it for 6 files for one patient and there are about 100 patients so I could not just create a new variable for each of the edf file.

Code is:

file_name = “00000993-100507[001].edf”
data = mne.io.read_raw_edf(file)

But want to merge them.

Does anyone know any workaround for this?

  • operating system: Mac

Best,

Hello @phatk14 and welcome to the forum!

I’m not sure what exactly you mean by “merging” the files, I assume you want to concatenate them? If so, you can use mne.concatenate_raws().

Best wishes,
Richard

1 Like

Hi Richard!

Thank you so much!

Yes I meant by concatenate :sweat_smile: ! Thank you so much for the quick reply!

Best,
Peter

1 Like