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 5, 2024
1 parent ee599a7 commit 24e669c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions mne/epochs.py
Original file line number Diff line number Diff line change
Expand Up @@ -839,11 +839,12 @@ def _reject_setup(self, reject, flat):
)
else:
raise ValueError(
"""The dictionary elements in %s must be in the
"""The dictionary elements in %s must be in the
form of a collection that contains a callable or value
in the first element and a collection or string
in the second element""" % rej
)
in the second element"""
% rej
)

# now check to see if our rejection and flat are getting more
# restrictive
Expand Down
4 changes: 3 additions & 1 deletion mne/utils/mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,9 @@ def _getitem(
if reason is not None:
# Used for multiple reasons
if isinstance(reason, (list, tuple)):
for i, idx in enumerate(np.setdiff1d(inst.selection, key_selection)):
for i, idx in enumerate(
np.setdiff1d(inst.selection, key_selection)
):
drop_log[idx] = reason[i]
else:
for idx in np.setdiff1d(inst.selection, key_selection):
Expand Down

0 comments on commit 24e669c

Please sign in to comment.