diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-02-12 10:51:42 +0100 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-02-12 10:51:42 +0100 |
commit | 486690f31dfe8da33fbd0711137844424d0321eb (patch) | |
tree | 5d392998eec345c0583b2fc796a995d655b5cb44 /bin | |
parent | 152e8c6c99d1791d0dcd78c25d2a20a43f55247d (diff) |
unfuck param_names / feature_names handling
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/analyze-archive.py | 16 | ||||
-rwxr-xr-x | bin/analyze-kconfig.py | 4 | ||||
-rwxr-xr-x | bin/analyze-log.py | 4 |
3 files changed, 11 insertions, 13 deletions
diff --git a/bin/analyze-archive.py b/bin/analyze-archive.py index 42c70ec..e3d1232 100755 --- a/bin/analyze-archive.py +++ b/bin/analyze-archive.py @@ -694,15 +694,11 @@ def main(): for state in model.states: for attribute in model.attributes(state): info = param_info(state, attribute) - dfatool.cli.print_model( - f"{state:10s} {attribute:15s}", info, model.parameters - ) + dfatool.cli.print_model(f"{state:10s} {attribute:15s}", info) for trans in model.transitions: for attribute in model.attributes(trans): info = param_info(trans, attribute) - dfatool.cli.print_model( - f"{trans:10s} {attribute:15s}", info, model.parameters - ) + dfatool.cli.print_model(f"{trans:10s} {attribute:15s}", info) if args.with_substates: for submodel in model.submodel_by_name.values(): sub_param_model, sub_param_info = submodel.get_fitted() @@ -868,7 +864,13 @@ def main(): if args.export_json: with open(args.export_json, "w") as f: - json.dump(model.to_json(), f, sort_keys=True, cls=dfatool.utils.NpEncoder) + json.dump( + model.to_json(), + f, + sort_keys=True, + cls=dfatool.utils.NpEncoder, + indent=2, + ) if args.export_webconf: if not pta: diff --git a/bin/analyze-kconfig.py b/bin/analyze-kconfig.py index c92db5c..1da926b 100755 --- a/bin/analyze-kconfig.py +++ b/bin/analyze-kconfig.py @@ -522,9 +522,7 @@ def main(): for name in model.names: for attribute in model.attributes(name): info = param_info(name, attribute) - dfatool.cli.print_model( - f"{name:20s} {attribute:15s}", info, model.parameters - ) + dfatool.cli.print_model(f"{name:20s} {attribute:15s}", info) if args.show_model_error: dfatool.cli.model_quality_table( diff --git a/bin/analyze-log.py b/bin/analyze-log.py index 3c0fc12..db071fd 100755 --- a/bin/analyze-log.py +++ b/bin/analyze-log.py @@ -237,9 +237,7 @@ def main(): for name in sorted(model.names): for attribute in sorted(model.attributes(name)): info = param_info(name, attribute) - dfatool.cli.print_model( - f"{name:10s} {attribute:15s}", info, model.parameters - ) + dfatool.cli.print_model(f"{name:10s} {attribute:15s}", info) if args.show_model_error: dfatool.cli.model_quality_table( |