Skip to content

Commit ba36d49

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent fe56176 commit ba36d49

File tree

2 files changed

+26
-7
lines changed

2 files changed

+26
-7
lines changed

mne_bids/tests/test_utils.py

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,37 @@ def test_get_ch_type_mapping():
3838
"""Test getting a correct channel mapping."""
3939
with pytest.raises(ValueError, match='specified from "bogus" to "mne"'):
4040
_get_ch_type_mapping(fro="bogus", to="mne")
41-
41+
4242
# check that all mne types have a corresponding BIDS translation
4343
# last update from mne 0.19.0. The following have been removed:
44-
# dipole, fnirs,
44+
# dipole, fnirs,
4545
mne_
46-
mne_valid_types = ['bio', 'chpi', 'dbs', 'dipole', 'ecg', 'ecog', 'eeg', 'emg',
47-
'eog', 'exci', 'eyetrack', 'gsr', 'ias', 'misc',
48-
'meg', 'resp', 'seeg', 'stim', 'syst', 'temperature']
46+
mne_valid_types = [
47+
"bio",
48+
"chpi",
49+
"dbs",
50+
"dipole",
51+
"ecg",
52+
"ecog",
53+
"eeg",
54+
"emg",
55+
"eog",
56+
"exci",
57+
"eyetrack",
58+
"gsr",
59+
"ias",
60+
"misc",
61+
"meg",
62+
"resp",
63+
"seeg",
64+
"stim",
65+
"syst",
66+
"temperature",
67+
]
4968
map_mne_to_bids = _get_ch_type_mapping(fro="mne", to="bids")
5069
for ch_types in mne_valid_types:
5170
assert ch_type in map_mne_to_bids
52-
71+
5372

5473
def test_handle_datatype():
5574
"""Test the automatic extraction of datatype from the data."""

mne_bids/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def _get_ch_type_mapping(fro="mne", to="bids"):
8282
megrefgradaxial="MEGREFGRADAXIAL",
8383
meggradplanar="MEGGRADPLANAR",
8484
megrefmag="MEGREFMAG",
85-
chpi='MEGOTHER',
85+
chpi="MEGOTHER",
8686
ias="MEGOTHER",
8787
syst="MEGOTHER",
8888
exci="MEGOTHER",

0 commit comments

Comments
 (0)