Skip to content

[EEG] Fix mne2eeg_epochs data orientation and ICA fields - #185

Closed
claude[bot] wants to merge 1 commit into
developfrom
agent/20260610-fix-178
Closed

claude[bot] wants to merge 1 commit into
developfrom
agent/20260610-fix-178

Conversation

@claude

@claude claude Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Transpose converted data to EEGLAB channel-major (nbchan, pnts, trials) and map MNE's get_components() onto icawinv with icaweights=pinv(icawinv) and icasphere=identity so EEGPrep's icawinv=pinv(icaweights@icasphere) algebra holds. Tests now assert channel-major shape and the reconstruction identity instead of the previous swapped shapes.

Fixes #178

Transpose converted data to EEGLAB channel-major (nbchan, pnts, trials)
and map MNE's get_components() onto icawinv with icaweights=pinv(icawinv)
and icasphere=identity so EEGPrep's icawinv=pinv(icaweights@icasphere)
algebra holds. Tests now assert channel-major shape and the reconstruction
identity instead of the previous swapped shapes.

Fixes #178
@suraj-ranganath

Copy link
Copy Markdown
Member

🤖 Closing as redundant. PR #177 includes the MNE epochs data-orientation and ICA-field fix; it keeps the ICA fields tied to the MNE unmixing transform rather than using get_components() as a looser topomap-only mapping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix MNE epochs conversion EEG shape and ICA fields

1 participant