summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-02-09 09:53:38 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-02-09 09:53:38 +0100
commit2523fa0e1ae827449b02389ff0899f7c02347363 (patch)
tree873fe4001fc2f532c21bd3ae5d94bda4cf1fe840 /bin
parente35f187a6e37bb4e24c66ef4f07c5d83039ef4e2 (diff)
computers hard
Diffstat (limited to 'bin')
-rwxr-xr-xbin/analyze-kconfig.py2
-rwxr-xr-xbin/analyze-log.py24
2 files changed, 13 insertions, 13 deletions
diff --git a/bin/analyze-kconfig.py b/bin/analyze-kconfig.py
index 5791e57..c92db5c 100755
--- a/bin/analyze-kconfig.py
+++ b/bin/analyze-kconfig.py
@@ -297,7 +297,7 @@ def main():
args.filter_param = list(
map(
lambda entry: dfatool.cli.parse_filter_string(
- entry, parameter_names=parameters
+ entry, parameter_names=parameter_names
),
args.filter_param.split(";"),
)
diff --git a/bin/analyze-log.py b/bin/analyze-log.py
index 05814e6..3c0fc12 100755
--- a/bin/analyze-log.py
+++ b/bin/analyze-log.py
@@ -61,18 +61,6 @@ def main():
style="{",
)
- if args.filter_param:
- args.filter_param = list(
- map(
- lambda entry: dfatool.cli.parse_filter_string(
- entry, parameter_names=parameters
- ),
- args.filter_param.split(";"),
- )
- )
- else:
- args.filter_param = list()
-
if args.filter_observation:
args.filter_observation = list(
map(lambda x: tuple(x.split(":")), args.filter_observation.split(","))
@@ -86,6 +74,18 @@ def main():
args.ignore_param = args.ignore_param.split(",")
dfatool.utils.ignore_param(by_name, parameter_names, args.ignore_param)
+ if args.filter_param:
+ args.filter_param = list(
+ map(
+ lambda entry: dfatool.cli.parse_filter_string(
+ entry, parameter_names=parameter_names
+ ),
+ args.filter_param.split(";"),
+ )
+ )
+ else:
+ args.filter_param = list()
+
dfatool.utils.filter_aggregate_by_param(by_name, parameter_names, args.filter_param)
dfatool.utils.filter_aggregate_by_observation(by_name, args.filter_observation)