From fd4c75f2ada0aa7b9a64a9d03e63162f0c8e44ac Mon Sep 17 00:00:00 2001 From: Jacob Woessner Date: Wed, 10 Jan 2024 12:22:06 -0600 Subject: [PATCH] Update mne/epochs.py Co-authored-by: Eric Larson --- mne/epochs.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mne/epochs.py b/mne/epochs.py index dedf73aa870..0c87de09f7b 100644 --- a/mne/epochs.py +++ b/mne/epochs.py @@ -823,9 +823,8 @@ def _reject_setup(self, reject, flat): _validate_type(val, "numeric", name, extra="or callable") if val is None or val < 0: raise ValueError( - """If using numerical %s criteria, the value - must be >= 0 Not '%s'.""" - % (kind, val) + f"If using numerical {name} criteria, the value " + f"must be >= 0, not {repr(val)}" ) # now check to see if our rejection and flat are getting more