-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
MRG plot_topomap from info #3165
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
Conversation
mne/viz/topomap.py
Outdated
| else: | ||
| ch_type = ch_type.pop() | ||
|
|
||
| if any(type in ch_type for type in ('planar', 'grad')): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't overwrite built in type
|
Looks pretty clean See why Travis complains |
|
Travis is fine, Appveyor is: I think that's unrelated? |
|
@wmvanvliet @kingjr what do you think of the API? |
mne/viz/topomap.py
Outdated
| raise ValueError("Multiple channel types in Info structure. " + | ||
| info_help) | ||
| elif len(pos["chs"]) != data.shape[0]: | ||
| raise ValueError("Number of channels in Info and Data does not " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incorrect var naming ?
|
I just have my phone but it seems OK to me |
| # Plot array | ||
| for ch_type in ('mag', 'grad'): | ||
| evoked_ = evoked.copy().pick_types(eeg=False, meg=ch_type) | ||
| plot_topomap(evoked_.data[:, 0], evoked_.info) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it also work with evoked_.data[:, [0]] which has shape (n_channels, 1) and evoked_.data[:, :3] which has multiple time points? It's not clear from the tests if those should work or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well I don't know but this PR doesn't change any of this. The PR doesn't touch anything beyond getting the pos array.
|
appveyor failure seems unrelated. @Eric89GXL can you restart? |
|
Good from my end. |
|
Maybe wait with merge for comments by @wmvanvliet and/or @kingjr ?.. |
|
Looks good to me! |
|
LGTM |
|
update what's new and merge. |
|
Hit the button! Thanks for reviews everyone. |
|
Thanks @jona-sassenhagen |
Closes #3078
Try: