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

animate_topomap - CSD fix #12605

Merged
merged 9 commits into from May 15, 2024
Merged

animate_topomap - CSD fix #12605

merged 9 commits into from May 15, 2024

Conversation

michalrzak
Copy link
Contributor

Reference Issue

Example: Fixes #12599.

What does this implement/fix?

For a detailed explanation, please refer to the associated issue.

In essence, this PR addresses the issue where animate_topomap() fails to function with "csd" data. The proposed solutions in the issue include a straightforward addition of "csd" to the list of permitted ch_types for animate_topomap, as well as a more intricate approach that consolidates the ch_type selections from both animate_topomap() and plot_evoked_topomap().

This PR implements the latter solution, as I find it to be the more comprehensive approach. However, I may have missed a specific reason for maintaining different channel selections in animate_topomap() and plot_evoked_topomap(). Should such reasons exist, I am open to adjusting this PR accordingly.

@michalrzak michalrzak changed the title Csd update animate_topomap - CSD fix May 7, 2024
Copy link
Member

@agramfort agramfort left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks clean ! thx @michalrzak

can you update the changelog to make the CI green? thx

mne/viz/tests/test_topomap.py Outdated Show resolved Hide resolved
@michalrzak michalrzak requested a review from larsoner as a code owner May 8, 2024 17:08
Copy link
Member

@larsoner larsoner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved the imports and removed now unnecessary plt.close("all")s that I saw as well, marking for merge when green. Thanks in advance @michalrzak !

@drammock drammock enabled auto-merge (squash) May 15, 2024 18:05
@drammock drammock merged commit 4cffc34 into mne-tools:main May 15, 2024
30 checks passed
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

Successfully merging this pull request may close these issues.

Cannot use evoked.animate_topomap() on CSD data
4 participants