Skip to content

Commit 8499907

Browse files
committed
Fix for non BaseRaw objects
1 parent 820359e commit 8499907

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

mne/io/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3168,7 +3168,8 @@ def _check_raw_compatibility(raw):
31683168
"""Ensure all instances of Raw have compatible parameters."""
31693169
for ri in range(1, len(raw)):
31703170
if not isinstance(raw[ri], BaseRaw):
3171-
raise ValueError(f"raw[{ri}] type must match")
3171+
if type(raw[ri]) is not type(raw[0]):
3172+
raise ValueError(f"raw[{ri}] type must match")
31723173
for key in ("nchan", "sfreq"):
31733174
a, b = raw[ri].info[key], raw[0].info[key]
31743175
if a != b:

0 commit comments

Comments
 (0)