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.

Selecting ICA components in `ica.plot_components` doesn't work anymore

See original GitHub issue

If I click on the title of a component in the dialog produced by ica.plot_components(inst=raw), I get the following error:

  File "/usr/local/lib/python3.6/site-packages/matplotlib/cbook/__init__.py", line 389, in process
    proxy(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/matplotlib/cbook/__init__.py", line 227, in __call__
    return mtd(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/mne/viz/topomap.py", line 1006, in onclick
    label = event.inaxes.get_label()
AttributeError: 'NoneType' object has no attribute 'get_label'

Any idea why the label is gone and how to retrieve it (actually, event.inaxes is None)?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:21 (21 by maintainers)

github_iconTop GitHub Comments

1reaction
mmagnuskicommented, Nov 30, 2017

Ok, I’ll try to do it in one PR.

0reactions
mmagnuskicommented, Nov 30, 2017

@cbrnr

Did this change recently? AFAIR, you could click on the title and nothing happened.

I’m not sure, I never clicked the titles before. But I tried this on a previous matplotlib version and the error was printed in the console where I started jupyter notebook, but was absent in the notebook view. Maybe matplotlib changed something so now all the errors are passed to the notebook (that’s actually helpful).

Read more comments on GitHub >

github_iconTop Results From Across the Web

mne.preprocessing.ICA — MNE 1.2.2 documentation
The n_components parameter determines how many components out of the n_channels PCA components the ICA algorithm will actually fit. This is not ...
Read more >
Check for ICA (toward Epochs Rejection) - MNE Forum
preprocessing import (ICA) n_components = None # if float, select n_components by explained variance of PCA method = 'fastica' # for comparison with...
Read more >
ICA decomposition and component analysis
ICA decomposition and component analysis. Task 1. Run ICA. Exercise... Task 2. Plot components. Identify components. Task 3. Plot component power.
Read more >
Repairing artifacts with ICA - | notebook.community
Repairing artifacts with ICA. This tutorial covers the basics of independent components analysis (ICA) and shows how ICA can be used for artifact...
Read more >
Independent Component Analysis (ICA) | by Shawhin Talebi
Converting mixed signals to independent components using ICA. Image by author. How it works. There are two key assumptions made in ICA. The ......
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