Spectral_connectivity_epochs array without the epoch dimension

Hi guys!
i’m having some trouble with my code to compute the connectivity over a signal with 12 epochs of 15 seconds each, for 5 frequency bands.
I wanted to get a 4 dimension array of (12,63,63,5) where 12 is the epochs, 63 the channels and 5 the frequency bands, but i only get a (63,63,5)

This is the code I’m using:

signal_epoch = mne.make_fixed_length_epochs(signal, duration=15.0)
sfreq = signal.info['sfreq']  

con_bands = spectral_connectivity_epochs(signal_epoch, method="coh", names=signal.ch_names,
    mode="fourier", sfreq=sfreq, fmin=fmin, fmax=fmax, faverage=True)
con_bands = con_bands.get_data(output="dense")

Do you know what I need to do to get the other dimension with the values for each epoch?
Thanks!

  • MNE version: 1.3.1
  • MNE-connectivity version: 0.5.0
  • operating system: Windows 10