diff --git a/mne/epochs.py b/mne/epochs.py index e525ce2f4c5..a0fcd46de5e 100644 --- a/mne/epochs.py +++ b/mne/epochs.py @@ -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 diff --git a/tutorials/preprocessing/20_rejecting_bad_data.py b/tutorials/preprocessing/20_rejecting_bad_data.py index bc7f4bba796..dde24ab38b6 100644 --- a/tutorials/preprocessing/20_rejecting_bad_data.py +++ b/tutorials/preprocessing/20_rejecting_bad_data.py @@ -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)) @@ -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))