From 3b60482187260988e680835e5c43dd30d13621da Mon Sep 17 00:00:00 2001 From: emotion3459 <176516814+emotion3459@users.noreply.github.com> Date: Wed, 13 Nov 2024 09:25:22 -0500 Subject: [PATCH] Move away from ExprOp range_half --- vsdeband/noise.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vsdeband/noise.py b/vsdeband/noise.py index fe73682..52138b0 100644 --- a/vsdeband/noise.py +++ b/vsdeband/noise.py @@ -270,9 +270,9 @@ def _try_grain(src: vs.VideoNode, stre: tuple[float, float] = strength, **args: ] if complexpr_available: - limit_expr = 'y range_half - abs A! x A@ - {low} < x A@ + {high} > or range_half y ?' + limit_expr = 'y neutral - abs A! x A@ - {low} < x A@ + {high} > or neutral y ?' else: - limit_expr = 'x y range_half - abs - {low} < x y range_half - abs + {high} > or range_half y ?' + limit_expr = 'x y neutral - abs - {low} < x y neutral - abs + {high} > or neutral y ?' grained = norm_expr([clip, grained], limit_expr, planes, low=low, high=high)