diff options
author | Stefan Klug <stefan.klug@ideasonboard.com> | 2024-06-11 14:56:45 +0200 |
---|---|---|
committer | Stefan Klug <stefan.klug@ideasonboard.com> | 2024-07-05 22:38:19 +0200 |
commit | 8e411bfaefaf931f849521149aa74151e1ccbd0c (patch) | |
tree | 84528400974e9277f432d2c6684324af403115b5 /utils/tuning/libtuning/generators/yaml_output.py | |
parent | 54a8405726e5d5aaddf0a44ee037fe544f31d836 (diff) |
libtuning: Only warn if processing returns None
There are valid cases where a module returns None. E.g. no images were
provided for LSC calibration. We should however define proper semantics
there. Continue with a warning for now.
Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Diffstat (limited to 'utils/tuning/libtuning/generators/yaml_output.py')
-rw-r--r-- | utils/tuning/libtuning/generators/yaml_output.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/tuning/libtuning/generators/yaml_output.py b/utils/tuning/libtuning/generators/yaml_output.py index 31e265df..c490081d 100644 --- a/utils/tuning/libtuning/generators/yaml_output.py +++ b/utils/tuning/libtuning/generators/yaml_output.py @@ -107,6 +107,9 @@ class YamlOutput(Generator): ] for module in output_order: + if module not in output_dict: + continue + out_lines.append(f' - {module.out_name}:') if len(output_dict[module]) == 0: |