From d8dda070b349213fc5332454b28c9427a43c8330 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 11 Nov 2023 21:34:00 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- mne/epochs.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/mne/epochs.py b/mne/epochs.py index 2ae9deb21e6..a7d4b5198e5 100644 --- a/mne/epochs.py +++ b/mne/epochs.py @@ -824,10 +824,10 @@ def _reject_setup(self, reject, flat): continue else: raise ValueError( - '%s value must be a number >= 0 or a valid function, not "%s"' % (kind, val) + '%s value must be a number >= 0 or a valid function, not "%s"' + % (kind, val) ) - # now check to see if our rejection and flat are getting more # restrictive old_reject = self.reject if self.reject is not None else dict() @@ -3645,10 +3645,7 @@ def _is_good( # Check if criterion is a function and apply it if callable(criterion): idx_deltas = np.where( - np.logical_and( - criterion(e_idx), - checkable_idx - ) + np.logical_and(criterion(e_idx), checkable_idx) )[0] else: deltas = np.max(e_idx, axis=1) - np.min(e_idx, axis=1)