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

Doc Smallfix: Updated the BIDSPath in-place update method example #1026

Merged
merged 9 commits into from Aug 26, 2022
8 changes: 6 additions & 2 deletions mne_bids/path.py
Expand Up @@ -666,8 +666,12 @@ def update(self, *, check=None, **kwargs):
>>> print(bids_path.basename)
sub-test_ses-two_task-mytask_channels.tsv
>>> # Then, one can update this `BIDSPath` object in place
>>> bids_path = bids_path.update(acquisition='test', suffix='ieeg',
... extension='.vhdr', task=None)
>>> bids_path.update(acquisition='test', suffix='ieeg',
... extension='.vhdr', task=None)
bhvieira marked this conversation as resolved.
Show resolved Hide resolved
BIDSPath(
root: None
datatype: ieeg
basename: sub-test_ses-two_acq-test_ieeg.vhdr)
>>> print(bids_path.basename)
sub-test_ses-two_acq-test_ieeg.vhdr
"""
Expand Down