@trachelr this will create more copies than required. First you get the data, then you iterate over the data in the aux function. Simply pass epochs and iteration will do the work for you. Tip: take a look at mne.Epochs.next / mne.Epochs.__iter__ .