Is there a way to combine MEG and EEG raw files

Hi MNE users,

I have two files for the same subject for same run split into two files EEG and MEG, I wish to combine the EEG and MEG files to one. What is the function for that?

hi,

if the time axis is perfectly aligned you should use

https://mne.tools/dev/generated/mne.io.Raw.html#mne.io.Raw.add_channels

Alex

Hi @agramfort, for eg, Raw1 has all the MEG sensors, and Raw2 has all the EEG sensors. Should the code be:

raw1.add_channels([raw2])??

yes that’s right

Alex