From 44d54000c941b4068595ee89f4a091e79b1d7051 Mon Sep 17 00:00:00 2001 From: Markus Multrus Date: Tue, 25 Apr 2023 23:26:51 +0200 Subject: [PATCH] adjust range check for alpha, e_step --- ivas_processing_scripts/audiotools/wrappers/esdru.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ivas_processing_scripts/audiotools/wrappers/esdru.py b/ivas_processing_scripts/audiotools/wrappers/esdru.py index 10c1719c..d7fbd925 100755 --- a/ivas_processing_scripts/audiotools/wrappers/esdru.py +++ b/ivas_processing_scripts/audiotools/wrappers/esdru.py @@ -83,12 +83,12 @@ def esdru( "ESDRU condition only available for STEREO or BINAURAL output format" ) - if alpha <= 0.0 or alpha >= 1.0: + if alpha < 0.0 or alpha > 1.0: raise Exception( "Alpha value is out of bounds. Please choose a value between 0.0 and 1.0." ) - if e_step <= 0.0 or e_step >= 1.0: + if e_step < 0.0 or e_step > 1.0: raise Exception( "Step value is out of bounds. Please choose a value between 0.0 and 1.0." ) -- GitLab