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 Jan 4, 2024
1 parent b9a4aca commit a8976a4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/preprocessing/interpolate_bad_channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
# sphinx_gallery_thumbnail_number = 2

import numpy as np

import mne
from mne.datasets import sample

Expand Down Expand Up @@ -58,8 +59,9 @@
# try to only remove bad channels on some epochs to save EEG 053
epochs.drop_bad(reject=dict(grad=4000e-13, mag=4e-12, eeg=100e-6))

interpolate_channels = [entry if len(entry) < 5 else tuple()
for entry in epochs.drop_log]
interpolate_channels = [
entry if len(entry) < 5 else tuple() for entry in epochs.drop_log
]
drop_epochs = np.array([len(entry) >= 5 for entry in epochs.drop_log])
del epochs

Expand Down

0 comments on commit a8976a4

Please sign in to comment.