diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2025-03-24 13:08:28 +0100 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2025-03-24 13:08:28 +0100 |
commit | 102f2ff962eda1523c357471d089e15b6e4e10dc (patch) | |
tree | 4d204ed232175b13329d7419b6bcc977f96287b4 /bin | |
parent | 0b66ad95861f2fd5d0baedd7f52952ddc36229f4 (diff) |
workload: indicate failed LUT prediction on error
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/workload.py | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/bin/workload.py b/bin/workload.py index 78c6f44..742d336 100755 --- a/bin/workload.py +++ b/bin/workload.py @@ -116,13 +116,17 @@ def main(): f"Cannot predict {name}.{action}({param}), falling back to static model" ) - event_output = event_normalizer( - param_model( - name, - action, - param=param_list, + try: + event_output = event_normalizer( + param_model( + name, + action, + param=param_list, + ) ) - ) + except KeyError: + logging.error(f"Cannot predict {name}.{action}({param}) from LUT model") + raise if args.aggregate == "sum": aggregate += event_output |