From a8976a4d143ef41d77afde7584b45df30dae3303 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 4 Jan 2024 00:09:04 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- examples/preprocessing/interpolate_bad_channels.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/preprocessing/interpolate_bad_channels.py b/examples/preprocessing/interpolate_bad_channels.py index 75a53bc8fab..fe730907105 100644 --- a/examples/preprocessing/interpolate_bad_channels.py +++ b/examples/preprocessing/interpolate_bad_channels.py @@ -24,6 +24,7 @@ # sphinx_gallery_thumbnail_number = 2 import numpy as np + import mne from mne.datasets import sample @@ -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