Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix fnirs channel name cropping in topomap combination #11138

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions mne/viz/topomap.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,10 @@ def _average_fnirs_overlaps(info, ch_type, sphere):
# first listed channel is the one to be replaced with merge
overlapping_set = [chs[i]['ch_name'] for i in
np.where(overlapping_mask[chan_idx])[0]]
overlapping_set = np.insert(overlapping_set, 0,
(chs[chan_idx]['ch_name']))
overlapping_set.insert(0,chs[chan_idx]['ch_name'])
JohnGriffiths marked this conversation as resolved.
Show resolved Hide resolved
overlapping_channels.append(overlapping_set)
channels_to_exclude.append(overlapping_set[1:])

overlapping_set = np.array(overlapping_set)
exclude = list(itertools.chain.from_iterable(channels_to_exclude))
[exclude.append(bad) for bad in info['bads']]
picks = pick_types(info, meg=False, ref_meg=False, fnirs=ch_type,
Expand Down