diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-01-23 08:47:22 +0100 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-01-23 08:47:22 +0100 |
commit | c9614f35cb8de12c70ea791ae3c347b5c1939fa5 (patch) | |
tree | 6b86aa5bc705712cf58499ab6d8e02ff588cd930 /bin | |
parent | 2ad43ee2c8a83a9524d9e6ca830f776ab9b1c23a (diff) |
--function-override: Use : for splitting to support spaces in key/attr names
Also, document it in doc/modeling-methods
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/analyze-archive.py | 4 | ||||
-rwxr-xr-x | bin/analyze-kconfig.py | 4 | ||||
-rwxr-xr-x | bin/analyze-log.py | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/bin/analyze-archive.py b/bin/analyze-archive.py index bb3281a..3da6ec3 100755 --- a/bin/analyze-archive.py +++ b/bin/analyze-archive.py @@ -273,8 +273,8 @@ if __name__ == "__main__": if args.function_override: for function_desc in args.function_override.split(";"): - state_or_tran, attribute, *function_str = function_desc.split(" ") - function_override[(state_or_tran, attribute)] = " ".join(function_str) + state_or_tran, attribute, function_str = function_desc.split(":") + function_override[(state_or_tran, attribute)] = function_str show_quality = args.show_quality diff --git a/bin/analyze-kconfig.py b/bin/analyze-kconfig.py index 76e31dd..f798277 100755 --- a/bin/analyze-kconfig.py +++ b/bin/analyze-kconfig.py @@ -255,8 +255,8 @@ def main(): function_override = dict() if args.function_override: for function_desc in args.function_override.split(";"): - state_or_tran, attribute, *function_str = function_desc.split(" ") - function_override[(state_or_tran, attribute)] = " ".join(function_str) + state_or_tran, attribute, function_str = function_desc.split(":") + function_override[(state_or_tran, attribute)] = function_str by_name, parameter_names = dfatool.utils.observations_to_by_name(observations) diff --git a/bin/analyze-log.py b/bin/analyze-log.py index 2dbbfdc..902eb31 100755 --- a/bin/analyze-log.py +++ b/bin/analyze-log.py @@ -89,8 +89,8 @@ def main(): function_override = dict() if args.function_override: for function_desc in args.function_override.split(";"): - state_or_tran, attribute, *function_str = function_desc.split(" ") - function_override[(state_or_tran, attribute)] = " ".join(function_str) + state_or_tran, attribute, function_str = function_desc.split(":") + function_override[(state_or_tran, attribute)] = function_str model = AnalyticModel( by_name, |