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 20, 2023
1 parent fbdec77 commit 6e23ecc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 2 additions & 3 deletions mne/epochs.py
Original file line number Diff line number Diff line change
Expand Up @@ -825,9 +825,8 @@ 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
Expand Down
6 changes: 2 additions & 4 deletions tutorials/preprocessing/20_rejecting_bad_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,7 @@
tmin=0,
tmax=1,
baseline=None,
reject=dict(
eeg=lambda x: True if (np.max(x, axis=1) > 1e-2).any() else False),
reject=dict(eeg=lambda x: True if (np.max(x, axis=1) > 1e-2).any() else False),
preload=True,
)
epochs.plot(scalings=dict(eeg=50e-5))
Expand All @@ -396,8 +395,7 @@
tmin=0,
tmax=1,
baseline=None,
reject=dict(
eeg=lambda x: True if (np.median(x, axis=1) > 1e-4).any() else False),
reject=dict(eeg=lambda x: True if (np.median(x, axis=1) > 1e-4).any() else False),
preload=True,
)
epochs.plot(scalings=dict(eeg=50e-5))
Expand Down

0 comments on commit 6e23ecc

Please sign in to comment.