-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
MRG, DOC: Fix plot_evoked_joint exclude parameter default inconsistency #13391
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
MRG, DOC: Fix plot_evoked_joint exclude parameter default inconsistency #13391
Conversation
The docstring for plot_evoked_joint stated that the exclude parameter defaults to None, but the actual default was inconsistent with the evoked.plot_joint method which uses exclude="bads" as default. This commit fixes the inconsistency by: - Changing plot_evoked_joint default from exclude=None to exclude="bads" - Updating the docstring to reflect the new default Fixes mne-tools#13157
|
Hello! 👋 Thanks for opening your first pull request here! ❤️ We will try to get back to you soon. 🚴 |
mne/viz/evoked.py
Outdated
| axes are passed make sure to set ``title=None``, otherwise some of your | ||
| axes may be removed during placement of the title axis. | ||
| %(picks_all)s | ||
| exclude : None | list of str | 'bads' |
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.
the code in #13157 shows that None isn't even valid input, so we should remove it here too:
| exclude : None | list of str | 'bads' | |
| exclude : list of str | 'bads' |
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.
Done
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.
the filename of this file needs the PR number, not the issue number that it addresses. So change to 13391.bugfix.rst
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.
Done. Please Check.
- Remove 'None' from exclude parameter type in docstring - Rename changelog file to use PR number (13391.bugfix.rst)
|
🎉 Congrats on merging your first pull request! 🥳 Looking forward to seeing more from you in the future! 💪 |
Summary
Fixes inconsistency between the plot_evoked_joint function signature and its docstring regarding the exclude parameter default value.
Problem
Solution
Testing
Fixes #13157