Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 20, 2023
1 parent cdd2843 commit cd9f7b1
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions mne/tests/test_epochs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2144,10 +2144,8 @@ def test_callable_reject():
new_data[0, 610:880] += 1e-3
edit_raw = mne.io.RawArray(new_data, raw.info)

events = mne.make_fixed_length_events(
edit_raw, id=1, duration=1.0, start=0)
epochs = mne.Epochs(edit_raw, events, tmin=0, tmax=1,
baseline=None, preload=True)
events = mne.make_fixed_length_events(edit_raw, id=1, duration=1.0, start=0)
epochs = mne.Epochs(edit_raw, events, tmin=0, tmax=1, baseline=None, preload=True)

assert len(epochs) == 5
epochs = mne.Epochs(
Expand All @@ -2156,8 +2154,9 @@ def test_callable_reject():
tmin=0,
tmax=1,
baseline=None,
reject=dict(eeg=lambda x: True if (
np.median(x, axis=1) > 1e-3).any() else False),
reject=dict(
eeg=lambda x: True if (np.median(x, axis=1) > 1e-3).any() else False
),
preload=True,
)
assert epochs.drop_log[2] != ()
Expand All @@ -2168,8 +2167,7 @@ def test_callable_reject():
tmin=0,
tmax=1,
baseline=None,
reject=dict(eeg=lambda x: True if (
np.max(x, axis=1) > 1).any() else False),
reject=dict(eeg=lambda x: True if (np.max(x, axis=1) > 1).any() else False),
preload=True,
)
assert epochs.drop_log[0] != ()
Expand Down

0 comments on commit cd9f7b1

Please sign in to comment.