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)