MNE_version: 1.5
mne-connectivity: 0.5
System: Windows 10
So I have recently upgraded my mne version from 1.1 to 1.5. However, after the upgrade exectution of my code for computing spectral connectivity yields an error.
if _electrode_types(info) and info.get(‘custom_ref_applied’, False):
raise ValueError('Custom EEG reference is not allowed for inverse ’
‘modeling.’)
I checked the error and noticed that the error could be caused by the fact that the function _check_reference is called within mne.minimum_norm.inverse. apply_inverse_epochs_gen from versions 1.2> while this wasn’t the case in 1.0 and 1.1.
What are the implications of this change and how do I make the following code work in current version of MNE?
con = mne_connectivity.spectral_connectivity_epochs(
label_ts, method=con_methods, mode='multitaper', sfreq=sfreq, fmin=fmin,
fmax = fmax, faverage=True, mt_adaptive=True, n_jobs=-1, verbose = 'ERROR')
My reference is set to average projection:
raw.set_eeg_reference(projection=False)