chore(docs): update preprocessing tutorial for using inst.pick() instead of pick_types()#12326
chore(docs): update preprocessing tutorial for using inst.pick() instead of pick_types()#12326mscheltienne merged 18 commits intomne-tools:mainfrom
Conversation
… pick_types() Updated the tutorial by removing legacy method call of mne.io.Raw.pick_types() to instance.pick()
chore(docs): update preprocessing tutorial for using inst.pick() instead of pick_types()
|
Hello! 👋 Thanks for opening your first pull request here! ❤️ We will try to get back to you soon. 🚴 |
|
thanks for taking a stab at this @btkcodedev! |
|
Thanks for your contribution! I think the beginning of the sentence must also be adjusted, since we don't pass an "exclude" parameter anywhere as far as I can see |
Co-authored-by: Marijn van Vliet <w.m.vanvliet@gmail.com>
|
Thanks, but I don't think the sentence makes too much sense the way it's phrased now. I think it would be better to just write that "pick()" retains the bad channels. It's just how the methods works, not the justification why we used it. |
|
@btkcodedev Could you review the sentence modification I proposed and add a changelog entry?
|
Co-authored-by: Mathieu Scheltienne <mathieu.scheltienne@gmail.com>
Update names.inc
Create 12326.other.rst
|
@mscheltienne Changes done :) |
mscheltienne
left a comment
There was a problem hiding this comment.
Thank you @btkcodedev
2 more minor comments and this will be good to merge!
Co-authored-by: Mathieu Scheltienne <mathieu.scheltienne@gmail.com>
|
@wmvanvliet Could you please review again? Currently your change request (which AFAICT has been addressed) is blocking the merge. Thanks! |
drammock
left a comment
There was a problem hiding this comment.
just two small nitpicks from me. Thanks for fixing this!
| @@ -0,0 +1 @@ | |||
| Updated the text in the preprocessing tutorial to use :class:`mne.io.Raw.pick()` instead of the legacy :class:`mne.io.Raw.pick_types()`, by :newcontrib:`btkcodedev`. | |||
There was a problem hiding this comment.
I'm a little surprised that these cross-refs worked; regardless, it's more accurate to mark these with the :meth: role since they're links to methods (not classes). The parentheses will get added automatically.
| Updated the text in the preprocessing tutorial to use :class:`mne.io.Raw.pick()` instead of the legacy :class:`mne.io.Raw.pick_types()`, by :newcontrib:`btkcodedev`. | |
| Updated the preprocessing tutorial to use :meth:`mne.io.Raw.pick` instead of the legacy :meth:`mne.io.Raw.pick_types`, by :newcontrib:`btkcodedev`. |
| # %% | ||
| # Note that we used the ``exclude=[]`` trick in the call to | ||
| # :meth:`~mne.io.Raw.pick_types` to make sure the bad channels were not | ||
| # Note that the method :meth:`~mne.io.Raw.pick()` default |
There was a problem hiding this comment.
FYI parentheses get added automatically when you use the :meth: role
| # Note that the method :meth:`~mne.io.Raw.pick()` default | |
| # Note that the method :meth:`~mne.io.Raw.pick` default |
wmvanvliet
left a comment
There was a problem hiding this comment.
Once @drammock's comments are resolved, LGTM
|
🎉 Congrats on merging your first pull request! 🥳 Looking forward to seeing more from you in the future! 💪 |
|
Didn't know there was an automerge in place. Perhaps we can fix @drammock's comments directly in main? |
|
Thanks for your contribution, @btkcodedev!! |
|
Somehow there is in I'm going to delete the |
|
@wmvanvliet @larsoner I think I addressed the final comments before going on holidays in a PR, not yet merged, which was blocked by the towncrier job failing. |
…ead of pick_types() (mne-tools#12326) Co-authored-by: Marijn van Vliet <w.m.vanvliet@gmail.com> Co-authored-by: Mathieu Scheltienne <mathieu.scheltienne@fcbg.ch> Co-authored-by: Mathieu Scheltienne <mathieu.scheltienne@gmail.com>
Reference issue
Closes #12158
Updated the tutorial by removing legacy method call of mne.io.Raw.pick_types() to instance.pick()