Thanks for your answer Alex.
Here’s what I did to solve my problem. Maybe the solution could help other people.
- Export MNE epochs as numpy array using
epochs_trial.get_data
- Use
numpy.concatenate
to concatenate them. That function enables concatenation with arrays of different lengths. - Create a new MNE epoch with the numpy array using
mne.EpochsArray
.
François