Skip to content

ENH: broaden OPM coil handling for colocated topomaps#13825

Open
PragnyaKhandelwal wants to merge 4 commits intomne-tools:mainfrom
PragnyaKhandelwal:enh-opm-topomap
Open

ENH: broaden OPM coil handling for colocated topomaps#13825
PragnyaKhandelwal wants to merge 4 commits intomne-tools:mainfrom
PragnyaKhandelwal:enh-opm-topomap

Conversation

@PragnyaKhandelwal
Copy link
Copy Markdown
Contributor

@PragnyaKhandelwal PragnyaKhandelwal commented Apr 8, 2026

Reference issue (if any)

Related to #13781

Hi @larsoner, @drammock
I tried to start with a small incremental fix to keep the scope reviewable and testable. This branch now handles colocated OPM topomap detection more robustly, and I’ll continue with the orientation-grouping part next once I get guidance on the preferred direction.

@PragnyaKhandelwal PragnyaKhandelwal marked this pull request as ready for review April 8, 2026 15:11
@PragnyaKhandelwal PragnyaKhandelwal marked this pull request as draft April 10, 2026 18:07
@PragnyaKhandelwal PragnyaKhandelwal marked this pull request as ready for review April 12, 2026 08:47
@PragnyaKhandelwal
Copy link
Copy Markdown
Contributor Author

ci failure seems unrelated to this PR. Happy to iterate on this whenever you have time to review.

@larsoner
Copy link
Copy Markdown
Member

This looks reasonable to me. To help with future compat I think it's worth adding a comment to constants.py saying if we add more OPM coils we should add them to the list in mne/viz/topomap.py as well

@PragnyaKhandelwal PragnyaKhandelwal marked this pull request as draft April 13, 2026 13:53
@PragnyaKhandelwal
Copy link
Copy Markdown
Contributor Author

Hi @larsoner, I’ve addressed your suggestion of adding the comment in the constants.py and I also split out a focused triaxial regression test for colocated OPM channels. If this looks good, I’d appreciate a review/merge on this PR so I can open the follow-up PR for the orientation-grouping in #13781.
The two failing job seems unrelated....

@PragnyaKhandelwal PragnyaKhandelwal marked this pull request as ready for review April 13, 2026 15:40
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.

2 participants