-
Notifications
You must be signed in to change notification settings - Fork 92
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
Doc Smallfix: Updated the BIDSPath in-place update method example #1026
Conversation
I updated the `BIDSPath` in-place update example to perhaps make it clearer to users what in-place updating means. It's a small change, but should make the message clearer.
Hello! 👋 Thanks for opening your first pull request here! ❤️ We will try to get back to you soon. 🚴🏽♂️ |
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.
Thanks for the contribution -- in principle I am fine with this -- but note how your change has an impact on the doctests (see failed CI checks):
Due to you removing the "assignment", the .update
now prints some information. You would have to update the example to reflect that some output is expected.
See e.g.,
>>> bids_path.update(acquisition='test', suffix='ieeg',
... extension='.vhdr', task=None)
!!!!! here you must put what output is expected !!!!!!
>>> print(bids_path.basename)
sub-test_ses-two_acq-test_ieeg.vhdr
"""
Thanks! (I tried to find tests pertaining to the docs but failed at it). I'll do it as soon as I'm available |
The indentation needs to be fixed, too |
@bhvieira do you want to come back to this? Let me know if you need help with anything. |
Hi @sappelhoff, yes. I was ill these days, but I should be able to implement the changes shortly |
no rush - get better soon! |
I see the current problem is that in mne-stable BIDSPath doesn't infer that datatype is "ieeg", and we get a diff there |
yes, I think that's the case after: |
Co-authored-by: Stefan Appelhoff <stefan.appelhoff@mailbox.org>
Codecov Report
@@ Coverage Diff @@
## main #1026 +/- ##
=======================================
Coverage 95.21% 95.21%
=======================================
Files 25 25
Lines 3822 3822
=======================================
Hits 3639 3639
Misses 183 183
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Thanks @bhvieira can you please do two more things?
Line 143 in a809234
|
Sorry for the long silence and thanks for your first contribution @bhvieira This PR should be auto-merged once all CI checks come back green 🎉 |
🎉 Congrats on merging your first pull request! 🥳 Looking forward to seeing more from you in the future! 💪 |
Thanks for contributing. If this is your first time,
make sure to read contributing.md
PR Description
I updated the
BIDSPath
in-place update example to perhaps make it clearer to users what in-place updating means.It's a small change, but should make the message clearer.
An out-of-place example could be added using
copy()
perhaps.Merge checklist
Maintainer, please confirm the following before merging:
[ ] All CIs are happy[ ] PR title starts with [MRG][ ] whats_new.rst is updated[ ] PR description includes phrase "closes <#issue-number>"