From a043e55110423a02aea8851263b1f3e5bb1728d8 Mon Sep 17 00:00:00 2001 From: Stefan Klug Date: Mon, 1 Jul 2024 17:38:30 +0200 Subject: libtuning: Be a bit more verbose Print a info on every image that gets processed and a warning on every image that gets ignored. Signed-off-by: Stefan Klug Reviewed-by: Paul Elder Reviewed-by: Daniel Scally --- utils/tuning/libtuning/utils.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'utils') diff --git a/utils/tuning/libtuning/utils.py b/utils/tuning/libtuning/utils.py index 93c6c94e..e35cf409 100644 --- a/utils/tuning/libtuning/utils.py +++ b/utils/tuning/libtuning/utils.py @@ -92,9 +92,13 @@ def load_images(input_dir: str, config: dict, load_nonlsc: bool, load_lsc: bool) images = [] for f in files: color, lux, lsc_only = _parse_image_filename(f) + if color is None: + logger.warning(f'Ignoring "{f.name}" as it has no associated color temperature') continue + logger.info(f'Process image "{f.name}" (color={color}, lux={lux}, lsc_only={lsc_only})') + # Skip lsc image if we don't need it if lsc_only and not load_lsc: logger.warning(f'Skipping {f.name} as this tuner has no LSC module') -- cgit v1.2.1