Skip to content

Commit

Permalink
[tvla] Make filter_traces cfg optional
Browse files Browse the repository at this point in the history
As not all tvla config files use the `filter_traces` entry yet,
this PR makes the entry optional.

Signed-off-by: Pascal Nasahl <[email protected]>
  • Loading branch information
nasahlpa committed Oct 16, 2023
1 parent f2702f8 commit 2e39c42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cw/tvla.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2e39c42

Please sign in to comment.