From b76b70a98e991a8f028cb240e6b3a1e5d5e30c8d Mon Sep 17 00:00:00 2001 From: Archit Tamarapu Date: Tue, 9 Sep 2025 15:44:43 +0200 Subject: [PATCH] update splitting warning for JBM conditions --- ivas_processing_scripts/processing/processing.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ivas_processing_scripts/processing/processing.py b/ivas_processing_scripts/processing/processing.py index f762ad38..bdda821f 100755 --- a/ivas_processing_scripts/processing/processing.py +++ b/ivas_processing_scripts/processing/processing.py @@ -270,12 +270,14 @@ def concat_teardown( # check if last split ending coincides with last sample of signal if splits[-1] > len(x): - raise ValueError( + warn( f"Last split index {splits[-1]} is larger than the signal length {len(x)}" + f"\nLast split exceeds signal length by {((splits[-1] - len(x))*1000)/fs:.2f} ms" ) elif (splits[-1] < len(x)) and not tracefile_needed: warn( f"Last split index {splits[-1]} is smaller than the signal length {len(x)}" + f"\nLast split shorter than signal length by {((len(x) - splits[-1])*1000)/fs:.2f} ms" ) split_signals = [] -- GitLab