Skip to content

Commit

Permalink
fix where to write example
Browse files Browse the repository at this point in the history
  • Loading branch information
sappelhoff committed Jul 11, 2024
1 parent d7459ff commit 3290e80
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
3 changes: 1 addition & 2 deletions examples/anonymize_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

# %%
import shutil
from pathlib import Path

import mne

Expand All @@ -37,7 +36,7 @@
write_raw_bids,
)

data_path = Path(mne.datasets.sample.data_path())
data_path = mne.datasets.sample.data_path()
event_id = {
"Auditory/Left": 1,
"Auditory/Right": 2,
Expand Down
9 changes: 5 additions & 4 deletions examples/create_bids_folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
# First we will import the relevant functions

import shutil
from pathlib import Path

import mne

from mne_bids import BIDSPath

Expand Down Expand Up @@ -51,11 +52,11 @@
#
# You can also use MNE-BIDS to create folder hierarchies.

my_root = Path(__file__).resolve().parent # replace with *your* root folder
my_root = mne.datasets.sample.data_path() # replace with *your* root folder
bids_path = BIDSPath(
subject="01", session="mysession", datatype="meg", root=my_root
subject="mneBIDStest", session="mysession", datatype="meg", root=my_root
).mkdir()
print(bids_path.directory)

# clean up
shutil.rmtree(my_root / "sub-01")
shutil.rmtree(my_root / "sub-mneBIDStest")

0 comments on commit 3290e80

Please sign in to comment.