From 2e39c42d928f159ba785e8a72276b171e925f3d2 Mon Sep 17 00:00:00 2001 From: Pascal Nasahl Date: Mon, 16 Oct 2023 10:45:20 +0200 Subject: [PATCH] [tvla] Make filter_traces cfg optional As not all tvla config files use the `filter_traces` entry yet, this PR makes the entry optional. Signed-off-by: Pascal Nasahl --- cw/tvla.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cw/tvla.py b/cw/tvla.py index d88bb299..1608de81 100755 --- a/cw/tvla.py +++ b/cw/tvla.py @@ -375,7 +375,7 @@ def run_tvla(ctx: typer.Context): # Define upper and lower limits. max_trace = trace_resolution min_trace = 0 - if cfg["filter_traces"]: + if "filter_traces" in cfg and cfg["filter_traces"]: # Filter out noisy traces. log.info("Filtering Traces") # Get the mean and standard deviation.