Message ID | 20240703141726.252368-13-stefan.klug@ideasonboard.com |
---|---|
State | Superseded |
Headers | show |
Series |
|
Related | show |
On Wed, Jul 03, 2024 at 04:17:01PM +0200, Stefan Klug wrote: > 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> > --- > utils/tuning/libtuning/utils.py | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/utils/tuning/libtuning/utils.py b/utils/tuning/libtuning/utils.py > index 93c6c94ea2b0..dacda11312a2 100644 > --- a/utils/tuning/libtuning/utils.py > +++ b/utils/tuning/libtuning/utils.py > @@ -92,7 +92,9 @@ 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) > + logger.info(f'Process image "{f.name}" (color={color}, lux={lux}, lsc_only={lsc_only})') > if color is None: > + logger.warning(f'Ignoring "{f.name}" as it has no associated color temperature') > continue > > # Skip lsc image if we don't need it > -- > 2.43.0 >
diff --git a/utils/tuning/libtuning/utils.py b/utils/tuning/libtuning/utils.py index 93c6c94ea2b0..dacda11312a2 100644 --- a/utils/tuning/libtuning/utils.py +++ b/utils/tuning/libtuning/utils.py @@ -92,7 +92,9 @@ 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) + logger.info(f'Process image "{f.name}" (color={color}, lux={lux}, lsc_only={lsc_only})') if color is None: + logger.warning(f'Ignoring "{f.name}" as it has no associated color temperature') continue # Skip lsc image if we don't need it
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> --- utils/tuning/libtuning/utils.py | 2 ++ 1 file changed, 2 insertions(+)