Skip to content

Commit

Permalink
limit_filter: Replace ambiguous var name
Browse files Browse the repository at this point in the history
  • Loading branch information
LightArrowsEXE committed Oct 11, 2024
1 parent 807b94e commit dc73e82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vsrgtools/limit.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ def limit_filter(
if bright_thr is None:
bright_thr = thr

for var, name, l in [
for var, name, lower_bound in [
(thr, 'thr', 0), (thrc, 'thrc', 0), (bright_thr, 'bright_thr', 0), (elast, 'elast', 1)
]:
if var < l:
raise CustomIndexError(f'{name} must be >= {l}', limit_filter, reason=var)
if var < lower_bound:
raise CustomIndexError(f'{name} must be >= {lower_bound}', limit_filter, reason=var)

if ref is None and mode != LimitFilterMode.CLAMPING:
raise CustomValueError('You need to specify ref!', limit_filter, reason='mode={mode}', mode=mode)
Expand Down

0 comments on commit dc73e82

Please sign in to comment.