Skip to content

Commit 23ae216

Browse files
CedricCondayclaude
andcommitted
test: use direct create_info/RawArray imports, drop unused import mne
Address @drammock review on #14006: create_info and RawArray are already imported directly at the top of the test module, so call them directly and remove the now-unused `import mne`. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LyuFNWN45FNffpGwsC4Su7
1 parent 1e8c790 commit 23ae216

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

mne/channels/tests/test_channels.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from numpy.testing import assert_allclose, assert_array_equal, assert_equal
1515
from scipy.io import savemat
1616

17-
import mne
1817
from mne import (
1918
Epochs,
2019
EpochsArray,
@@ -701,8 +700,8 @@ def test_combine_channels_metadata():
701700

702701
def test_pick_channels_orig_units_none():
703702
"""Picking channels must not crash when _orig_units is None (gh-11314)."""
704-
info = mne.create_info(["Fp1", "Fp2", "F3", "F4"], 100.0, "eeg")
705-
raw = mne.io.RawArray(np.zeros((4, 100)), info)
703+
info = create_info(["Fp1", "Fp2", "F3", "F4"], 100.0, "eeg")
704+
raw = RawArray(np.zeros((4, 100)), info)
706705
raw._orig_units = None # the state reported by some readers / RawArray flows
707706
raw.pick(["Fp1", "Fp2"]) # previously raised AttributeError on None.items()
708707
assert raw.ch_names == ["Fp1", "Fp2"]

0 commit comments

Comments
 (0)