Skip to content

Commit 1986d0b

Browse files
agramfortsappelhoff
authored andcommitted
simplify testing
1 parent 431792c commit 1986d0b

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed
Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
1-
import os
1+
from pathlib import Path
22
import mne_bids
33

4+
45
def test_read_ieeg_bids_data():
56

6-
bids_path = mne_bids.BIDSPath(subject='01', session='01',
7-
task='audiovisual', run='01', root=os.path.join("data", "ieeg_bids"))
7+
bids_path = mne_bids.BIDSPath(
8+
subject="01",
9+
session="01",
10+
task="audiovisual",
11+
run="01",
12+
root=Path(__file__).parent / "data" / "ieeg_bids",
13+
)
814

915
raw_read = mne_bids.read_raw_bids(bids_path)
1016

11-
assert raw_read.get_montage().get_positions()["coord_frame"] == "MNI152NLin2009bAsym"
17+
assert (
18+
raw_read.get_montage().get_positions()["coord_frame"] == "MNI152NLin2009bAsym"
19+
)
20+
21+
22+
if __name__ == '__main__':
23+
test_read_ieeg_bids_data()

0 commit comments

Comments
 (0)