Skip to content

Commit

Permalink
Update mne/epochs.py
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Larson <[email protected]>
  • Loading branch information
withmywoessner and larsoner authored Jan 10, 2024
1 parent e729e81 commit fd4c75f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mne/epochs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fd4c75f

Please sign in to comment.