Skip to content

Commit acdcc18

Browse files
committed
make EMG a valid datatype
1 parent 347dab7 commit acdcc18

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mne_bids/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ def _check_datatype(raw, datatype):
495495
-------
496496
None
497497
"""
498-
supported_types = ("meg", "eeg", "ieeg", "nirs")
498+
supported_types = ("meg", "eeg", "emg", "ieeg", "nirs")
499499
if datatype not in supported_types:
500500
raise ValueError(
501501
f"The specified datatype {datatype} is currently not supported. "
@@ -506,6 +506,8 @@ def _check_datatype(raw, datatype):
506506
datatype_matches = False
507507
if datatype == "eeg" and datatype in raw:
508508
datatype_matches = True
509+
elif datatype == "emg" and datatype in raw:
510+
datatype_matches = True
509511
elif datatype == "meg" and datatype in raw:
510512
datatype_matches = True
511513
elif datatype == "nirs" and "fnirs_cw_amplitude" in raw:

0 commit comments

Comments
 (0)