Skip to content

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
sappelhoff committed Jul 11, 2024
1 parent 966d3fe commit 7b71512
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/create_bids_folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
# First we will import the relevant functions

import shutil
from pathlib import Path

from mne_bids import BIDSPath

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

my_root = Path(__file__).resolve().parent # replace with *your* root folder
bids_path = BIDSPath(
subject="01", session="mysession", datatype="meg", root="path/to/project"
subject="01", session="mysession", datatype="meg", root=my_root
).mkdir()
print(bids_path.directory)

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

0 comments on commit 7b71512

Please sign in to comment.