summaryrefslogtreecommitdiff
path: root/lib/utils.py
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2022-06-22 09:28:31 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2022-06-22 09:28:31 +0200
commitd6a496e6fb879d8eb701fc5f90d76915e44bbbf9 (patch)
treee702f6851449bab3d8f4c15df3c2f36522bf2dd8 /lib/utils.py
parentf66449ac4f9c88ad3da834d041a25e1da6eb8d8c (diff)
analyze-kconfig: allow individual parameters to be ignored
Diffstat (limited to 'lib/utils.py')
-rw-r--r--lib/utils.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/utils.py b/lib/utils.py
index 12bd7c2..f8ce6ad 100644
--- a/lib/utils.py
+++ b/lib/utils.py
@@ -302,6 +302,12 @@ def observations_enum_to_bool(observations: list, kconfig=False):
binary_keys.add(binary_key)
+def observations_ignore_param(observations: list, ignored_parameters: list) -> list:
+ for observation in observations:
+ for ignored_parameter in ignored_parameters:
+ observation["param"].pop(ignored_parameter)
+
+
def observations_to_by_name(observations: list):
"""
Convert observation list to by_name dictionary for AnalyticModel analysis