summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorStefan Klug <stefan.klug@ideasonboard.com>2024-07-01 17:38:30 +0200
committerStefan Klug <stefan.klug@ideasonboard.com>2024-07-05 22:38:17 +0200
commita043e55110423a02aea8851263b1f3e5bb1728d8 (patch)
treeb8e872a64c7d6b9c85f928c85db5e89cd45127c8 /utils
parent611242b259b0450755e7d8cddba0c8026fc20c7f (diff)
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 <stefan.klug@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/tuning/libtuning/utils.py4
1 files changed, 4 insertions, 0 deletions
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')