I am attempting to import ICA components from EEGLab from a 61 channel setup. ICA was performed with AMICA (not runica) with PCA reduction to rank correct for interpolated channels.
Using run_ica_eeglab, I get a kickback from assert eeg.icaweights.shape == (n_components, n_ch). (Line 2708 of ica.py).
Looking at the data in EEGLab, ICAweights = n_components x n_pcs, and ICAsphere = n_pcs x n_channels. I鈥檓 guessing run_ica_eeglab is assuming the icaweights matrix is already multiplied by icasphere. Is this a bug, or am I not working around this correctly?
Hm, this could be a bug, maybe related to the weights coming from an AMICA decomposition. I鈥檓 not sure if this has been tested, so a test file would be helpful. Also, I think you should open an issue, because your usage of the function is obviously correct. Maybe christian-oreilly is still around to check.
Thanks, both. I鈥檒l go ahead and open an issue becuase I see there has been a few other issues with read_ICA_eeglab() since it was added not too long ago.