[7f9fb8]: / mne / io / nicolet / tests / test_nicolet.py

Download this file

33 lines (25 with data), 774 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Authors: The MNE-Python contributors.
# License: BSD-3-Clause
# Copyright the MNE-Python contributors.
from pathlib import Path
import pytest
from mne.io import read_raw_nicolet
from mne.io.tests.test_raw import _test_raw_reader
base_dir = Path(__file__).parent / "data"
fname_data = base_dir / "test_nicolet_raw.data"
fname_head = base_dir / "test_nicolet_raw.head"
def test_data():
"""Test reading raw nicolet files."""
_test_raw_reader(
read_raw_nicolet,
input_fname=fname_data,
ch_type="eeg",
ecg="auto",
eog="auto",
emg="auto",
misc=["PHO"],
)
with pytest.raises(
ValueError, match='File name should end with .data not ".head".'
):
read_raw_nicolet(fname_head, "eeg")