Skip to content

pop_topoplot: fix ERP map channel alignment when channels lack locations - #952

Open
innaamogolonova wants to merge 1 commit into
developfrom
fix/pop_topoplot-erp-nolocation-channel-alignment
Open

pop_topoplot: fix ERP map channel alignment when channels lack locations#952
innaamogolonova wants to merge 1 commit into
developfrom
fix/pop_topoplot-erp-nolocation-channel-alignment

Conversation

@innaamogolonova

Copy link
Copy Markdown

pop_topoplot passed only located-channel values alongside the full chanlocs, so datasets with interspersed no-location channels (e.g. EOG) plotted ERP data on the wrong electrodes. This builds SIGTMPAVG as a full nbchan-row array so each channel's value maps to its correct location.

Build SIGTMPAVG as a full nbchan-row array so each located channel's mean
maps to its true channel row. Previously only located channels were passed
(a shorter vector) alongside the full chanlocs, so datasets with interspersed
no-location channels (e.g. EOG) shifted the plotted data onto wrong electrodes.
@arnodelorme

Copy link
Copy Markdown
Collaborator

@claude please review this change.

@claude

claude Bot commented Jul 23, 2026

Copy link
Copy Markdown

Claude encountered an error —— View job


I'll analyze this and get back to you.

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