-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BIDSPath no longer warns on missing file (#1181)
- closes #1178
- Loading branch information
1 parent
e7fc975
commit 80add0f
Showing
1 changed file
with
5 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,8 @@ | |
BIDSPath is MNE-BIDS's working horse when it comes to file and folder | ||
operations. Learn here how to use it. | ||
""" | ||
# Author: Richard Höchenberger <[email protected]> | ||
# Authors: Richard Höchenberger <[email protected]> | ||
# Stefan Appelhoff <[email protected]> | ||
# | ||
# License: BSD-3-Clause | ||
|
||
|
@@ -141,15 +142,9 @@ | |
print(bids_path.fpath) | ||
|
||
# %% | ||
# Oups! The cell above produced a ``RuntimeWarning`` that our data file could | ||
# not be found. That's because we changed the ``run`` and ``session`` entities | ||
# above, and the ``tiny_bids`` dataset does not contain corresponding data. | ||
# | ||
# That shows us that ``BIDSPath`` is doing a lot of guess-work and checking | ||
# in the background, but note that this may change in the future. | ||
# | ||
# For now, let's revert to the last working iteration of our ``bids_path`` | ||
# instance. | ||
# However, for the sake of the present examples, let's revert to the iteration | ||
# of our ``bids_path`` instance with no ``run`` and ``session="eeg"``, as that | ||
# file exists in the ``tiny_bids`` dataset. | ||
|
||
bids_path.update(run=None, session="eeg") | ||
print(bids_path.fpath) | ||
|