Has anyone used the plotting function "ica.plot_components" for EEG? I'm getting the error "array must not contain infs or NaNs" when trying to plot the spatial sensitivities of my ICA components , and suspect that the function is missing the EEG electrode positions/names, to be potentially specified under "layout". Does anyone know a quick way of how to solve this issue?
Indeed, it should work. I've recently been running ICA on roughly 200 EEG datasets without any issues. Try to use ch_type='eeg' when calling the plot function, maybe this fixes your problem.