Skip to content

Commit 1e8c790

Browse files
committed
test: hoist numpy/mne imports to module level per review
1 parent 3189b59 commit 1e8c790

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

mne/channels/tests/test_channels.py

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

17+
import mne
1718
from mne import (
1819
Epochs,
1920
EpochsArray,
@@ -700,10 +701,6 @@ def test_combine_channels_metadata():
700701

701702
def test_pick_channels_orig_units_none():
702703
"""Picking channels must not crash when _orig_units is None (gh-11314)."""
703-
import numpy as np
704-
705-
import mne
706-
707704
info = mne.create_info(["Fp1", "Fp2", "F3", "F4"], 100.0, "eeg")
708705
raw = mne.io.RawArray(np.zeros((4, 100)), info)
709706
raw._orig_units = None # the state reported by some readers / RawArray flows

0 commit comments

Comments
 (0)