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

BUG: picking channels in Clusters.plot() leads to error #117

Open
mmagnuski opened this issue Jan 28, 2023 · 0 comments
Open

BUG: picking channels in Clusters.plot() leads to error #117

mmagnuski opened this issue Jan 28, 2023 · 0 comments

Comments

@mmagnuski
Copy link
Owner

ch, tm = clst.get_limits(cluster_idx=0, chan='25%')
clst.plot(cluster_idx=0, chan=ch)

leads to:

  File "C:\Users\mmagn\AppData\Local\Temp\ipykernel_20764\1150363016.py", line 3, in <cell line: 3>
    clst_load['maint'].plot(cluster_idx=0, chan=ch)

  File "c:\src\borsar\borsar\cluster\obj.py", line 624, in plot
    return plot_cluster_chan(self, cluster_idx, dims=dims, vmin=vmin,

  File "c:\src\borsar\borsar\cluster\viz.py", line 238, in plot_cluster_chan
    topo = Topo(show, clst.info, vmin=vmin, vmax=vmax, show=False,

  File "c:\src\borsar\borsar\viz.py", line 89, in __init__
    this_im, this_lines, interp = plot_topomap(

  File "c:\src\borsar\borsar\_mne_compat.py", line 33, in plot_topomap
    return _plot_topomap(

  File "c:\src\mne-python\mne\viz\topomap.py", line 928, in _plot_topomap
    raise ValueError("Number of channels in the Info object (%s) and "

ValueError: Number of channels in the Info object (64) and the data array (8) do not match. Pick Info with e.g. mne.pick_info and mne.io.pick.channel_indices_by_type.

When spatial dimension is subselected, plotting should take this into account and subsample Info as well...

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

No branches or pull requests

1 participant