Skip to content

Commit

Permalink
Fix cnt warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
withmywoessner committed Dec 5, 2024
1 parent 648214b commit 83c2d90
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions mne/io/cnt/cnt.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@
from ..._fiff.utils import _create_chs, _find_channels, _mult_cal_one, read_str
from ...annotations import Annotations
from ...channels.layout import _topo_to_sphere
from ...utils import _check_option, _validate_type, fill_doc, warn
from ...utils import (
_check_option,
_validate_type,
fill_doc,
warn,
_explain_exception
)
from ..base import BaseRaw
from ._utils import (
CNTEventType3,
Expand Down Expand Up @@ -547,7 +553,8 @@ def __init__(
)
except Exception:
raise RuntimeError(
"Could not read header from *.cnt file. mne.io.read_raw_cnt "
f"{_explain_exception()}\n"
"WARNING: mne.io.read_raw_cnt "
"supports Neuroscan CNT files only. If this file is an ANT Neuro CNT, "
"please use mne.io.read_raw_ant instead."
)
Expand Down

0 comments on commit 83c2d90

Please sign in to comment.