question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

plot_sensors(kind='select') does not fill the list with selected channel names

See original GitHub issue

For some reason interactive channel selection in plot_sensors(kind='select') does not update the returned list of selected channels.

Reproducible example

Confirmed this on latest master:

import mne
import os
from mne.datasets import multimodal

fname_raw = os.path.join(multimodal.data_path(), 'multimodal_raw.fif')
raw = mne.io.read_raw_fif(fname_raw)

now in interactive mode perform:

fig, sel = raw.plot_sensors(kind='select')

select a few channels and see what happens to sel list - its empty.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
drammockcommented, Nov 2, 2020

Ok, so currently the old behavior, where the list would update without blocking is not possible?

Well, you can still access it via fig.lasso.selection. But actually, after digging around in the code, I think I know what changed. Previously I think the original list object created during init of the lasso selector was preserved throughout. That is no longer happening; in the on_select and select_many methods it’s now getting rewritten instead of just appended, popped, etc. I’ll see if I can fix it.

0reactions
mmagnuskicommented, Nov 2, 2020

Ok, so currently the old behavior, where the list would update without blocking is not possible? Then I’d consider throwing a warning when kind='select' and block=False.

Read more comments on GitHub >

github_iconTop Results From Across the Web

DISPLAY CHANNEL
Use the MQSC command DISPLAY CHANNEL to display a channel definition. ... It can be a specific channel name or a generic channel...
Read more >
display channel names from a specific category with python
I can't find threads like this just count of how many text channels are in specific category etc... I did setup the basic...
Read more >
Mention channels in video titles & descriptions - Android
The mention of your channel in someone else's video doesn't increase the likelihood of their video ... Choose the channel name from a...
Read more >
How to Generate YouTube Channel Name Ideas
Kparser is not exactly a channel name generator, but if you're looking for an SEO specific channel name, this tool can come in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found