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 11, 2023
1 parent 81ef83e commit d8dda07
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions mne/epochs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit d8dda07

Please sign in to comment.