get EpochsTFR object from whole signal tfr and events

  • MNE version: 1.3.1
  • operating system: Windows 11

Hey guys, I’d like to compute morlet cwt on the whole recording, all channels, all timepoints to get a tensor like (n_channels, n_freqs, n_times). I’ve done that by:
one_big_epoch = raw_eeg._data[np.newaxis, …]
filt_tfr_eeg = mne.time_frequency.tfr_array_morlet(one_big_epoch, shared_sfreq, freqs, n_cycles, output=‘power’, n_jobs=-1)[0, …]

Now I need this tfr data to be epoched using my events to get EpochsTFR object. I don’t want to compute cwt per epoch, I would first compute it on the whole signal and then epoch it. Is this possible?

Thank you!